Skip to content

Commit

Permalink
Merge pull request #9 from AOT-Technologies/caseflow-ci-cd
Browse files Browse the repository at this point in the history
Caseflow ci cd
  • Loading branch information
sakthi-aot authored Mar 1, 2024
2 parents f5a6913 + d2b6a52 commit d417f2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ env:
jobs:
build:
name: ${{ inputs.component }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
build: ${{ steps.check.outputs.build }}
steps:
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:

- name: Build and push ${{ inputs.component }} Docker image
if: steps.check.outputs.build == 'true'
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v3.1.1
with:
context: ./${{ inputs.component }}/
push: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd-caseflow-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ./.github/workflows/_build.yml
strategy:
matrix:
component: [app/caseflow_core/microservices/dms, app/caseflow_core/microservices/gateway, app/caseflow_core/microservices/lob, app/caseflow_core/microservices/server, app/caseflow_web]
component: [app/caseflow_core/microservices/dms, app/caseflow_core/microservices/gateway, app/caseflow_core/microservices/lob, app/caseflow_core/microservices/server]
include:
- component: app/caseflow_core/microservices/dms
triggers: ('app/caseflow_core/microservices/dms/')
Expand All @@ -33,8 +33,8 @@ jobs:
triggers: ('app/caseflow_core/microservices/lob/')
- component: app/caseflow_core/microservices/server
triggers: ('app/caseflow_core/microservices/server/')
- component: app/caseflow_web
triggers: ('app/caseflow_web/')
# - component: app/caseflow_web
# triggers: ('app/caseflow_web/')
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -49,7 +49,7 @@ jobs:
uses: ./.github/workflows/_code-cov.yml
strategy:
matrix:
component: [app/caseflow_core/microservices/dms, app/caseflow_core/microservices/gateway, app/caseflow_core/microservices/lob, app/caseflow_core/microservices/server, app/caseflow_web]
component: [app/caseflow_core/microservices/dms, app/caseflow_core/microservices/gateway, app/caseflow_core/microservices/lob, app/caseflow_core/microservices/server]
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
5 changes: 1 addition & 4 deletions app/caseflow_web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

FROM artifacts.developer.gov.bc.ca/redhat-access-docker-remote/ubi8/nginx-122 AS deployer


FROM nginx:latest
COPY ./build /usr/share/nginx/html
COPY ./nginx_conf/nginx.conf /etc/nginx/nginx.conf

0 comments on commit d417f2e

Please sign in to comment.