diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml
deleted file mode 100644
index 326df0539bb..00000000000
--- a/.github/workflows/push-trigger.yml
+++ /dev/null
@@ -1,131 +0,0 @@
-name: Maven Package upon a push
-
-on:
- release:
- types: [published]
- pull_request:
- types: [opened, reopened, synchronize]
-
- workflow_dispatch:
- inputs:
- message:
- description: 'Message for manually triggering'
- required: false
- default: 'Triggered for Updates'
- type: string
- push:
- branches:
- - '!release-branch'
- - release-1*
- - master
- - 1.*
- - develop
-
-jobs:
- build-maven-registration:
- uses: mosip/kattu/.github/workflows/maven-build.yml@master
- with:
- SERVICE_LOCATION: ./registration-processor
- BUILD_ARTIFACT: registration
- secrets:
- OSSRH_USER: ${{ secrets.OSSRH_USER }}
- OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
- OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
- GPG_SECRET: ${{ secrets.GPG_SECRET }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
-
- publish_to_nexus:
- if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
- needs: build-maven-registration
- uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
- with:
- SERVICE_LOCATION: ./registration-processor
- secrets:
- OSSRH_USER: ${{ secrets.OSSRH_USER }}
- OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
- OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
- OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
- GPG_SECRET: ${{ secrets.GPG_SECRET }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
-
- build-dockers:
- needs: build-maven-registration
- strategy:
- matrix:
- include:
- - SERVICE_LOCATION: 'registration-processor/post-processor/registration-processor-registration-transaction-service'
- SERVICE_NAME: 'registration-processor-registration-transaction-service'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-1'
- SERVICE_NAME: 'registration-processor-stage-group-1'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-2'
- SERVICE_NAME: 'registration-processor-stage-group-2'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-3'
- SERVICE_NAME: 'registration-processor-stage-group-3'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-4'
- SERVICE_NAME: 'registration-processor-stage-group-4'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-5'
- SERVICE_NAME: 'registration-processor-stage-group-5'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-6'
- SERVICE_NAME: 'registration-processor-stage-group-6'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/stage-groups/registration-processor-stage-group-7'
- SERVICE_NAME: 'registration-processor-stage-group-7'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/core-processor/registration-processor-abis'
- SERVICE_NAME: 'registration-processor-abis'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/workflow-engine/registration-processor-reprocessor'
- SERVICE_NAME: 'registration-processor-reprocessor'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/init/registration-processor-dmz-packet-server'
- SERVICE_NAME: 'registration-processor-dmz-packet-server'
- - SERVICE_LOCATION: 'registration-processor/init/registration-processor-registration-status-service'
- SERVICE_NAME: 'registration-processor-registration-status-service'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/registration-processor-notification-service'
- SERVICE_NAME: 'registration-processor-notification-service'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/registration-processor-landing-zone'
- SERVICE_NAME: 'registration-processor-landing-zone'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/workflow-engine/registration-processor-workflow-manager-service'
- SERVICE_NAME: 'registration-processor-workflow-manager-service'
- BUILD_ARTIFACT: 'registration'
- - SERVICE_LOCATION: 'registration-processor/registration-processor-common-camel-bridge'
- SERVICE_NAME: 'registration-processor-common-camel-bridge'
- BUILD_ARTIFACT: 'registration'
-
- fail-fast: false
- name: ${{ matrix.SERVICE_NAME }}
- uses: mosip/kattu/.github/workflows/docker-build.yml@master
- with:
- SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
- SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
- BUILD_ARTIFACT: ${{ matrix.BUILD_ARTIFACT || false }}
- secrets:
- DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
- ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
- RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
-
-
- sonar_analysis:
- needs: build-maven-registration
- if: "${{ github.event_name != 'pull_request' }}"
- uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master
- with:
- SERVICE_LOCATION: ./registration-processor
- secrets:
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- ORG_KEY: ${{ secrets.ORG_KEY }}
- OSSRH_USER: ${{ secrets.OSSRH_USER }}
- OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
- OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
- GPG_SECRET: ${{ secrets.GPG_SECRET }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml
new file mode 100644
index 00000000000..1cf335fedac
--- /dev/null
+++ b/.github/workflows/push_trigger.yml
@@ -0,0 +1,1252 @@
+name: Maven Package upon a push
+
+on:
+
+ pull_request:
+ types: [closed]
+ push:
+ branches:
+ - master
+ - 1.*
+ - develop
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ ref: ${{ github.ref }}
+ java-version: 11
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+
+ - name: Setup branch and env
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
+ - name: Setup branch and GPG public key
+ run: |
+ # Strip git ref prefix from version
+ echo ${{ env.BRANCH_NAME }}
+ echo ${{ env.GPG_TTY }}
+ sudo apt-get --yes install gnupg2
+ gpg2 --import ./.github/keys/mosipgpgkey_pub.gpg
+ gpg2 --quiet --batch --passphrase=${{secrets.gpg_secret}} --allow-secret-key-import --import ./.github/keys/mosipgpgkey_sec.gpg
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
+ - name: Setup the settings file for ossrh server
+ run: echo " ossrh ${{secrets.ossrh_user}} ${{secrets.ossrh_secret}} ossrh true gpg2 ${{secrets.gpg_secret}} allow-snapshots true snapshots-repo https://oss.sonatype.org/content/repositories/snapshots false true releases-repo https://oss.sonatype.org/service/local/staging/deploy/maven2 true false sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+
+ - name: Build with Maven
+ run: |
+ cd registration-processor
+ mvn -B package -s $GITHUB_WORKSPACE/settings.xml --file pom.xml
+ - name: Ready the springboot artifacts
+ run: find -name '*.jar' -executable -type f -exec zip release.zip {} +
+
+
+ - name: Upload the springboot jars
+ uses: actions/upload-artifact@v1
+ with:
+ name: release
+ path: ./release.zip
+
+
+ publish_to_nexus:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ ref: ${{ github.ref }}
+ java-version: 11
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+ - uses: actions/checkout@v2
+
+
+ - name: Setup branch and env
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
+ - name: Setup branch and GPG public key
+ run: |
+ # Strip git ref prefix from version
+ echo ${{ env.BRANCH_NAME }}
+ echo ${{ env.GPG_TTY }}
+ sudo apt-get --yes install gnupg2
+ gpg2 --import ./.github/keys/mosipgpgkey_pub.gpg
+ gpg2 --quiet --batch --passphrase=${{secrets.gpg_secret}} --allow-secret-key-import --import ./.github/keys/mosipgpgkey_sec.gpg
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
+ - name: Install xmllint
+ run: |
+ sudo apt-get update
+ sudo apt-get install libxml2-utils
+ - name: Setup the settings file for ossrh server
+ run: echo " ossrh ${{secrets.RELEASE_USER}} ${{secrets.RELEASE_TOKEN}} ossrh true gpg2 ${{secrets.gpg_secret}} allow-snapshots true snapshots-repo https://oss.sonatype.org/content/repositories/snapshots false true releases-repo https://oss.sonatype.org/service/local/staging/deploy/maven2 true false sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+
+ - name: Publish the maven package
+ run: |
+ mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
+ env:
+ GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
+ GPG_TTY: $(tty)
+ - name: Analyze with SonarCloud
+ run: |
+ cd registration-processor
+ mvn clean -B verify sonar:sonar -Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -Dsonar.organization=${{ secrets.ORG_KEY }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+
+ registration-processor-common-camel-bridge:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-common-camel-bridge
+ SERVICE_LOCATION: registration-processor/registration-processor-common-camel-bridge
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ if [[ $BRANCH_NAME == master ]]; then
+ VERSION=latest
+ else
+ VERSION=$BRANCH_NAME
+ fi
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-osi-validator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-osi-validator-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-osi-validator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-osi-validator-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-securezone-notification-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-securezone-notification-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-securezone-notification-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-securezone-notification-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-external-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-external-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-external-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-external-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-packet-validator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-validator-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-packet-validator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-packet-uploader-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-uploader-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-packet-uploader-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-quality-checker-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-quality-checker-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-quality-checker-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-external-integration-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-external-integration-service
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-external-integration-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-printing-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-printing-stage
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-printing-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-registration-transaction-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-registration-transaction-service
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-registration-transaction-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-message-sender-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-message-sender-stage
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-message-sender-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-manual-verification-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-manual-verification-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-manual-verification-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-abis-handler-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis-handler-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis-handler-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-abis-middleware-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis-middleware-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis-middleware-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-uin-generator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-uin-generator-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-uin-generator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-abis:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-bio-dedupe-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-bio-dedupe-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-bio-dedupe-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-reprocessor-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-reprocessor-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-reprocessor-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-demo-dedupe-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-demo-dedupe-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-demo-dedupe-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-biometric-authentication-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-biometric-authentication-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-biometric-authentication-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-packet-receiver-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-receiver-stage
+ SERVICE_LOCATION: registration-processor/init/registration-processor-packet-receiver-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-dmz-packet-server:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-dmz-packet-server
+ SERVICE_LOCATION: registration-processor/init/registration-processor-dmz-packet-server
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info
+ id: getVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/version.xml
+ xpath: version
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getVersion.outputs.info}}"
+ VERSION=${{steps.getVersion.outputs.info}}
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-registration-status-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-registration-status-service
+ SERVICE_LOCATION: registration-processor/init/registration-processor-registration-status-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
diff --git a/.github/workflows/release_changes.yml b/.github/workflows/release_changes.yml
new file mode 100644
index 00000000000..55da09ed479
--- /dev/null
+++ b/.github/workflows/release_changes.yml
@@ -0,0 +1,54 @@
+name: Release/pre-release Preparation.
+
+on:
+ workflow_dispatch:
+ inputs:
+ message:
+ description: 'Triggered for release or pe-release'
+ required: false
+ default: 'Release Preparation'
+ releaseTags:
+ description: 'tag to update'
+ required: true
+ snapshotTags:
+ description: 'tag to be replaced'
+ required: true
+ base:
+ description: 'base branch for PR'
+ required: true
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup branch and env
+ run: |
+ # Strip git ref prefix from version
+ echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
+ echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
+ - name: Mannualy changing the pom versions
+ run: find . -type f -name "*pom.xml" -print0 | xargs -0 sed -i "s/${{ github.event.inputs.snapshotTags }}/${{ github.event.inputs.releaseTags }}/g"
+
+ - name: Updating the Release URL in POM
+ run: |
+ cd .github/workflows
+ sed -i 's/OSSRH_SNAPSHOT_URL/RELEASE_URL/g' push_trigger.yml
+ - name: Updating libs-snapshot-local to libs-release local for artifactory URL's.
+ run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g"
+
+ - name: removing -DskipTests
+ run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-DskipTests"//g"
+
+# - name: removing --Dgpg.skip
+# run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-Dgpg.skip"//g"
+
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ commit-message: Updated Pom versions for release changes
+ title: Release changes
+ body: Automated PR for ${{ github.event.inputs.releaseTags }} release.
+ branch: release-branch
+ delete-branch: true
+ base: ${{ github.event.inputs.base }}
+ token: ${{ secrets.ACTION_PAT }}
diff --git a/.github/workflows/release_trigger.yml b/.github/workflows/release_trigger.yml
new file mode 100644
index 00000000000..626cf331785
--- /dev/null
+++ b/.github/workflows/release_trigger.yml
@@ -0,0 +1,1238 @@
+name: Release maven packages and docker upon a release
+
+on:
+ release:
+ types: [published]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ ref: ${{ github.ref }}
+ java-version: 11
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+
+ - name: Setup branch and GPG public key
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ echo "::set-env name=GPG_TTY::$(tty)"
+ echo ${{ env.GPG_TTY }}
+ sudo apt-get --yes install gnupg2
+ gpg2 --import ./.github/keys/mosipgpgkey_pub.gpg
+ gpg2 --quiet --batch --passphrase=${{secrets.gpg_secret}} --allow-secret-key-import --import ./.github/keys/mosipgpgkey_sec.gpg
+
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
+
+ - name: Setup the settings file for ossrh server
+ run: echo " ossrh ${{secrets.ossrh_user}} ${{secrets.ossrh_secret}} ossrh true gpg2 ${{secrets.gpg_secret}} allow-snapshots true snapshots-repo https://oss.sonatype.org/content/repositories/snapshots false true releases-repo https://oss.sonatype.org/service/local/staging/deploy/maven2 true false sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+
+ - name: Build with Maven
+ run: |
+ cd registration-processor
+ mvn -B package -s $GITHUB_WORKSPACE/settings.xml -DskipTests --file pom.xml
+
+ - name: Ready the springboot artifacts
+ run: find -name '*.jar' -executable -type f -exec zip release.zip {} +
+
+
+ - name: Upload the springboot jars
+ uses: actions/upload-artifact@v1
+ with:
+ name: release
+ path: ./release.zip
+
+ - name: Build camel bridge image
+ run: |
+ # The camel bridge is not packaged as part of release.zip
+ cd "./registration-processor/registration-processor-common-camel-bridge"
+ docker build . --file Dockerfile --tag registration-processor-common-camel-bridge
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ env:
+ NAMESPACE: ${{ secrets.dev_namespace_docker_hub }}
+ SERVICE_NAME: registration-processor-common-camel-bridge
+ SERVICE_LOCATION: registration-processor/registration-processor-common-camel-bridge
+
+ publish_to_nexus:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ ref: ${{ github.ref }}
+ java-version: 11
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+ - uses: actions/checkout@v2
+
+
+ - name: Setup branch and GPG public key
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ echo "::set-env name=GPG_TTY::$(tty)"
+ echo ${{ env.GPG_TTY }}
+ sudo apt-get --yes install gnupg2
+ gpg2 --import ./.github/keys/mosipgpgkey_pub.gpg
+ gpg2 --quiet --batch --passphrase=${{secrets.gpg_secret}} --allow-secret-key-import --import ./.github/keys/mosipgpgkey_sec.gpg
+
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
+ - name: Install xmllint
+ run: |
+ sudo apt-get update
+ sudo apt-get install libxml2-utils
+
+ - name: Setup the settings file for ossrh server
+ run: echo " ossrh ${{secrets.ossrh_user}} ${{secrets.ossrh_secret}} ossrh true gpg2 ${{secrets.gpg_secret}} allow-snapshots true snapshots-repo https://oss.sonatype.org/content/repositories/snapshots false true releases-repo https://oss.sonatype.org/service/local/staging/deploy/maven2 true false sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+
+ - name: Build with Maven
+ run: |
+ cd registration-processor
+ mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/settings.xml
+ - name: Publish the maven package
+ run: |
+ chmod +x ./deploy.sh
+ ./deploy.sh registration-processor $GITHUB_WORKSPACE/settings.xml .*
+ env:
+ GITHUB_TOKEN: ${{ secrets.access_token }}
+ GPG_TTY: $(tty)
+ - name: Analyze with SonarCloud
+ run: |
+ cd registration-processor
+ mvn -B verify sonar:sonar -Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -Dsonar.organization=${{ secrets.ORG_KEY }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ docker-registration-processor-osi-validator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-osi-validator-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-osi-validator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-osi-validator-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-securezone-notification-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-securezone-notification-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-securezone-notification-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-securezone-notification-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-external-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-external-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-external-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the registration-processor-external-stage
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-packet-validator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-validator-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-packet-validator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-packet-uploader-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-uploader-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-packet-uploader-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-quality-checker-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-quality-checker-stage
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-quality-checker-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-external-integration-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-external-integration-service
+ SERVICE_LOCATION: registration-processor/pre-processor/registration-processor-external-integration-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-printing-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-printing-stage
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-printing-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-registration-transaction-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-registration-transaction-service
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-registration-transaction-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-message-sender-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-message-sender-stage
+ SERVICE_LOCATION: registration-processor/post-processor/registration-processor-message-sender-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-manual-verification-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-manual-verification-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-manual-verification-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+
+ docker-registration-processor-abis-handler-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis-handler-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis-handler-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-abis-middleware-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis-middleware-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis-middleware-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-uin-generator-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-uin-generator-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-uin-generator-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-abis:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-abis
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-abis
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-bio-dedupe-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-bio-dedupe-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-bio-dedupe-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-reprocessor-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-reprocessor-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-reprocessor-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-demo-dedupe-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-demo-dedupe-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-demo-dedupe-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-biometric-authentication-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-biometric-authentication-stage
+ SERVICE_LOCATION: registration-processor/core-processor/registration-processor-biometric-authentication-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-packet-receiver-stage:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-packet-receiver-stage
+ SERVICE_LOCATION: registration-processor/init/registration-processor-packet-receiver-stage
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-dmz-packet-server:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-dmz-packet-server
+ SERVICE_LOCATION: registration-processor/init/registration-processor-dmz-packet-server
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info
+ id: getVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/version.xml
+ xpath: version
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getVersion.outputs.info}}"
+ VERSION=${{steps.getVersion.outputs.info}}
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION
+ docker-registration-processor-registration-status-service:
+ needs: build
+
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: mosipdev
+ SERVICE_NAME: registration-processor-registration-status-service
+ SERVICE_LOCATION: registration-processor/init/registration-processor-registration-status-service
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v1
+ with:
+ name: release
+ path: ./
+
+ - name: Setup branch name
+ run: |
+ # Strip git ref prefix from version
+ echo "::set-env name=BRANCH_NAME::$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')"
+ echo ${{ env.BRANCH_NAME }}
+ - name: Get version info from pom
+ id: getPomVersion
+ uses: mavrosxristoforos/get-xml-info@1.0
+ with:
+ xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
+ xpath: /*[local-name()="project"]/*[local-name()="version"]
+
+ - name: Unzip and extract the ${{ env.SERVICE_NAME }}
+ run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"
+
+ - name: Build image
+ run: |
+ cd "./${{env.SERVICE_LOCATION}}"
+ docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
+ - name: Log into registry
+ run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
+
+ - name: Push image
+ run: |
+ IMAGE_ID=$NAMESPACE/$SERVICE_NAME
+
+ # Change all uppercase to lowercase
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
+ echo "push version ${{steps.getPomVersion.outputs.info}}"
+ VERSION=$BRANCH_NAME
+ echo IMAGE_ID=$IMAGE_ID
+ echo VERSION=$VERSION
+ docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
+ docker push $IMAGE_ID:$VERSION