-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from AOT-Technologies/caseflow-ci-cd
update
- Loading branch information
Showing
2 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,9 @@ jobs: | |
build: | ||
name: ${{ inputs.component }} | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
outputs: | ||
build: ${{ steps.check.outputs.build }} | ||
steps: | ||
|
@@ -142,3 +145,27 @@ jobs: | |
#docker push sakthiaot/caseflow-web:tagname | ||
|
||
#/usr/bin/docker buildx build --cache-from type=gha --cache-to type=gha,mode=max --iidfile /tmp/docker-build-push-RHJN6n/iidfile --tag ghcr.io/aot-technologies/case-flow-ai-case-management/app/caseflow_core/microservices/lob:dev --metadata-file /tmp/docker-build-push-RHJN6n/metadata-file --push ./app/caseflow_core/microservices/lob/ | ||
|
||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
if: steps.check.outputs.build == 'true' && inputs.component == 'app/caseflow_web' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: "./app/caseflow_web/package-lock.json" | ||
- run: npm install --force | ||
working-directory: ./app/caseflow_web | ||
- run: CI=false npm run build | ||
working-directory: ./app/caseflow_web | ||
|
||
- name: Build and push Caseflow Web | ||
if: steps.check.outputs.build == 'true' && inputs.component == 'app/caseflow_web' | ||
uses: docker/[email protected] | ||
with: | ||
context: ./${{ inputs.component }}/ | ||
push: true | ||
tags: ghcr.io/aot-technologies/case-flow-ai-case-management/${{ inputs.component }}:${{ inputs.img_build }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters