Skip to content

Commit

Permalink
Added CI build components
Browse files Browse the repository at this point in the history
  • Loading branch information
vivid-cpreston committed Apr 10, 2024
1 parent 9d89a81 commit 7273831
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/actions/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ jobs:
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-api
VERSION_NUMBER: 1.0.0-SNAPSHOT

build-underwriting-listener-api:
uses: ./.github/actions/build-package
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-listener-api
VERSION_NUMBER: 1.0.0-SNAPSHOT

build-underwriting-war:
uses: ./.github/actions/build-package
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-war
VERSION_NUMBER: 1.0.0-SNAPSHOT
5 changes: 1 addition & 4 deletions .github/actions/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
MICROSERVICE_NAME:
required: true
type: string
VERSION_NUMBER:
required: true
type: string

env:
DIRECTORY_SUFFIX: ${{ contains(inputs.MICROSERVICE_NAME, '-api') && '-rest-endpoints' || '' }}
Expand All @@ -36,7 +33,7 @@ jobs:
run: |
export MAVEN_OPTS="-Xmx3072m -XX:MaxMetaspaceSize=512m"
export NODE_OPTIONS="--max-old-space-size=4096"
mvn --batch-mode --update-snapshots -f ${{ inputs.MICROSERVICE_NAME }}/pom.xml -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }} package
mvn --settings=settings.xml --batch-mode --update-snapshots -f ${{ inputs.MICROSERVICE_NAME }}/pom.xml -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }} package
- name: Copy files to neccessary folders
run: mkdir staging && cp ${{ inputs.MICROSERVICE_NAME }}/${{ inputs.MICROSERVICE_NAME }}${{ DIRECTORY_SUFFIX }}/target/*.war staging
Expand Down
16 changes: 16 additions & 0 deletions .github/actions/underwriting-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: cirras-underwriting-api CI build

on:
pull_request_target:
branches:
- main
paths:
- cirras-underwriting-api/**

jobs:
build-underwriting-api:
uses: ./.github/actions/build-package
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-api
16 changes: 16 additions & 0 deletions .github/actions/underwriting-listener-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: cirras-underwriting-listener-api CI build

on:
pull_request_target:
branches:
- main
paths:
- cirras-underwriting-listener-api/**

jobs:
build-underwriting-listener-api:
uses: ./.github/actions/build-package
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-listener-api
16 changes: 16 additions & 0 deletions .github/actions/underwriting-war-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: cirras-underwriting-war CI build

on:
pull_request_target:
branches:
- main
paths:
- cirras-underwriting-war/**

jobs:
build-underwriting-war:
uses: ./.github/actions/build-package
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-war

0 comments on commit 7273831

Please sign in to comment.