Skip to content

Commit

Permalink
1.0.10 (mosip#63)
Browse files Browse the repository at this point in the history
* create the deploy script

* prallel build and publish

* prallel build and publish

* parallel build and publish

* 1.0.10 (mosip#52)

* build maven with settings file

* Add build tag

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* removing extra dependencies tag (mosip#46)

* Create travis yml files

* removing extra dependencies tag

Co-authored-by: Sasikumar Ganesan <[email protected]>

* resolving build issue

* resolving build issue

Co-authored-by: Sasikumar Ganesan <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* enabling executable property for pre-reg (mosip#53)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* adding executables in pom.xml

Co-authored-by: Loganathan Sekar <[email protected]>

* Correct transliteration spelling

* correct the spelling for transliteration

* correct spelling for transliteration

* branch name

* change to branch name

* Issue/prereg config changes (mosip#54)

* build maven with settings file

* Update docker to have branch version

* id schema changes

Co-authored-by: Sasikumar Ganesan <[email protected]>

* Add captcha service

* remove captcha

* Update with pre-registration-captcha-service

* Adding captcha

* update captcha

* merge the pull request and push event for build

* fix the release triggers

* 1.0.10 (mosip#55)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* build issue

Co-authored-by: Loganathan Sekar <[email protected]>

* Changing Kernel Auth Adapter verison to 1.0.8-SNAPSHOT (mosip#56)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* build issue changing kernel-auth-adpater version to 1.0.8-SNAPSHOT

Co-authored-by: Loganathan Sekar <[email protected]>

* Update DemographicController.java

* 1.0.10 (mosip#57)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* MOSIP-7169

Co-authored-by: Loganathan Sekar <[email protected]>

* Issue/mosip 7172 (mosip#58)

* build maven with settings file

* Update docker to have branch version

* MOSIP-7172

* MOS-7172

Co-authored-by: Sasikumar Ganesan <[email protected]>

* Update application.properties

* Commenting saveFailureCheck Testcase

* Commenting RecordNotFoundExceptionTest

* 1.0.10 (mosip#59)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* Test case errors fix

* uncommenting test case savCheckFailure and RecordNotFoundExceptionTest

Co-authored-by: Loganathan Sekar <[email protected]>

* 1.0.10 (mosip#60)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* fix test cases

Co-authored-by: Loganathan Sekar <[email protected]>

* updated the ref-idobjectvalidator version

updated the ref-idobjectvalidator 1.0.9-snapshot

* changing kernel crupto signature cersion to 1.0.9-SNAPSHOT in datasync pom (mosip#61)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* changing kernel crypto signature version to 1.0.9-SNAPSHOT

Co-authored-by: Loganathan Sekar <[email protected]>

* Update application.properties

* added sonarcloud implementation in workflow

* Update Dockerfile

* Update pom.xml

* updating the kernel-ref-idobjectvalidator version

* updating kernel core version

* updating the api uri to fetch idschema json

* updating api uri to fetch id schema

* updating the pre-reg application service version

* updating idobjectvalidator version

* 1.0.10 (mosip#62)

* 1.0.9-Add promotheus dependency (mosip#43)

* Added promotheus dependency

* updated to snapshot version

* resolving build issue

* restcall change in idshcema

Co-authored-by: Loganathan Sekar <[email protected]>

* Update Dockerfile

* Update Dockerfile

* Add git path to the jars and actuator

* setup gpg

* setup gpg

Co-authored-by: Sasikumar Ganesan <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: srinivasanMT <[email protected]>
Co-authored-by: ase-101 <[email protected]>
Co-authored-by: Saumya Saumya <[email protected]>
Co-authored-by: saumyamosip <[email protected]>
  • Loading branch information
7 people authored Jun 22, 2020
1 parent df1c11a commit 424716c
Show file tree
Hide file tree
Showing 39 changed files with 935 additions and 392 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/mavenpublish.yml

This file was deleted.

100 changes: 92 additions & 8 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: Maven Package upon a push

on:
pull_request:
types: [closed]
push:
branches:
- master
Expand Down Expand Up @@ -40,7 +42,9 @@ jobs:
${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
- name: Setup the settings file for ossrh server
run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.ossrh_user}}</username> <password>${{secrets.ossrh_secret}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml

run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.ossrh_user}}</username> <password>${{secrets.ossrh_secret}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> <profile> <id>sonar</id> <properties> <sonar.sources>.</sonar.sources> <sonar.host.url>https://sonarcloud.io</sonar.host.url> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml


- name: Build with Maven
run: |
Expand Down Expand Up @@ -71,6 +75,17 @@ jobs:
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
Expand All @@ -79,15 +94,33 @@ jobs:
${{ runner.os }}-maven-${{ env.BRANCH_NAME }}
- name: Setup the settings file for ossrh server
run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.ossrh_user}}</username> <password>${{secrets.ossrh_secret}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml

run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.ossrh_user}}</username> <password>${{secrets.ossrh_secret}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> <profile> <id>sonar</id> <properties> <sonar.sources>.</sonar.sources> <sonar.host.url>https://sonarcloud.io</sonar.host.url> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml

- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get install libxml2-utils
- name: Build with Maven
run: |
cd pre-registration
mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/settings.xml
- name: Publish the maven package
run: |
chmod +x ./deploy.sh
./deploy.sh pre-registration $GITHUB_WORKSPACE/settings.xml SNAPSHOT
env:
GITHUB_TOKEN: ${{ secrets.access_token }}
GPG_TTY: $(tty)
- name: Analyze with SonarCloud
run: |
cd pre-registration
mvn deploy -DskipTests -s $GITHUB_WORKSPACE/settings.xml
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:
GPG_TTY: $(tty)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}


docker-pre-registration-booking-service:
needs: build
Expand Down Expand Up @@ -497,14 +530,14 @@ jobs:
echo VERSION=$VERSION
docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
docker-pre-registration-translitration-service:
docker-pre-registration-transliteration-service:
needs: build

runs-on: ubuntu-latest
env:
NAMESPACE: mosipdev
SERVICE_NAME: pre-registration-translitration-service
SERVICE_LOCATION: pre-registration/pre-registration-translitration-service
SERVICE_NAME: pre-registration-transliteration-service
SERVICE_LOCATION: pre-registration/pre-registration-transliteration-service

steps:
- uses: actions/checkout@v2
Expand All @@ -526,7 +559,7 @@ jobs:
xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
xpath: /*[local-name()="project"]/*[local-name()="version"]

- name: Unzip and extract the pre-registration-translitration-service
- name: Unzip and extract the pre-registration-transliteration-service
run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target"

- name: Build image
Expand All @@ -549,3 +582,54 @@ jobs:
docker tag $SERVICE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
docker-pre-registration-captcha-service:
needs: build

runs-on: ubuntu-latest
env:
NAMESPACE: mosipdev
SERVICE_NAME: pre-registration-captcha-service
SERVICE_LOCATION: pre-registration/pre-registration-captcha-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/[email protected]
with:
xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml
xpath: /*[local-name()="project"]/*[local-name()="version"]

- name: Unzip and extract the pre-registration-transliteration-service
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
Loading

0 comments on commit 424716c

Please sign in to comment.