Skip to content

Commit

Permalink
Update web.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JonTaylorBCGov2 committed May 29, 2024
1 parent b62a8c0 commit 7578f83
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Docker Build Image
run: |
docker build --tag nginx-runtime -f docker/nginx-runtime/Dockerfile ./docker/nginx-runtime/
cd web
docker build --tag cas-web-artifacts -f Dockerfile.node . --build-arg WEB_BASE_HREF=${{ secrets.WEB_BASE_HREF }}
cd ..
docker build --tag web -f docker/vue-on-nginx/Dockerfile ./docker/vue-on-nginx/
docker tag web artifacts.developer.gov.bc.ca/cac1-cas/${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }}
docker push artifacts.developer.gov.bc.ca/cac1-cas/${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }}
- name: Checkout ArgoCD Repo
id: gitops
uses: actions/checkout@v4
Expand All @@ -39,6 +29,16 @@ jobs:
token: ${{ secrets.GIT_OPS_SSH_KEY }} # `GH_PAT` is a secret that contains your PAT
path: gitops

- name: Docker Build Image
run: |
docker build --tag nginx-runtime -f docker/nginx-runtime/Dockerfile ./docker/nginx-runtime/
cd web
docker build --tag cas-web-artifacts -f Dockerfile.node . --build-arg WEB_BASE_HREF=${{ secrets.WEB_BASE_HREF }}
cd ..
docker build --tag cas-web -f docker/vue-on-nginx/Dockerfile ./docker/vue-on-nginx/
docker tag cas-web artifacts.developer.gov.bc.ca/cac1-cas/${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }}
docker push artifacts.developer.gov.bc.ca/cac1-cas/${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }}
- name: Update Helm Values and Commit
id: helm
if: steps.gitops.outcome == 'success' # Only run if the previous step (publish) was successful
Expand Down

0 comments on commit 7578f83

Please sign in to comment.