Skip to content

Commit

Permalink
update api-build-and-push for renamed gitops folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Anderson authored and Rick Anderson committed Jul 11, 2024
1 parent f14622f commit 1e0e20c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/api-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
docker push artifacts.developer.gov.bc.ca/sf4a-strdss/frontend:dev-6cd0e88
package-h-chart-webapi-core:
package-h-chart-backend:
needs: [docker-build-backend]
runs-on: ubuntu-22.04
timeout-minutes: 10
Expand All @@ -210,14 +210,14 @@ jobs:
ref: develop
token: ${{ secrets.GITOPS }} # `GITOPS` is a secret that contains your PAT
path: gitops
- name: Update Helm Values and Commit Webapi-core
- name: Update Helm Values and Commit backend
id: helm
# if: steps.gitops.outcome == 'success' # Only run if the previous step (publish) was successful
run: |
pwd
# Navigate to the directory containing your Helm values file for the environment develop -> DEV, test -> test and
#cd gitops
cd gitops/charts/webapi-core
cd gitops/charts/backend
IMAGE="${{ steps.meta.outputs.tags || steps.meta-test.outputs.tags || steps.meta-prod.outputs.tags }} "
IMAGE_TAG=$(echo "$IMAGE" | awk -F':' '{print $NF}')
Expand Down Expand Up @@ -258,15 +258,15 @@ jobs:
cd ../gitops/charts
helm package ../../webapi-core/
helm package ../../backend/
git add .
git commit -m "Update image tag to $IMAGE_TAG on $DATETIME"
git push origin develop # Update the branch name as needed
package-h-chart-react-baseapp:
package-h-chart-frontend:
needs: [docker-build-frontend]
runs-on: ubuntu-22.04
timeout-minutes: 10
Expand All @@ -281,14 +281,14 @@ jobs:
ref: develop
token: ${{ secrets.GITOPS }} # `GITOPS` is a secret that contains your PAT
path: gitops
- name: Update Helm Values and Commit Webapi-core
- name: Update Helm Values and Commit backend
id: helm
# if: steps.gitops.outcome == 'success' # Only run if the previous step (publish) was successful
run: |
pwd
# Navigate to the directory containing your Helm values file for the environment develop -> DEV, test -> test and
#cd gitops
cd gitops/charts/react-baseapp
cd gitops/charts/frontend
IMAGE="${{ steps.meta.outputs.tags || steps.meta-test.outputs.tags || steps.meta-prod.outputs.tags }} "
IMAGE_TAG=$(echo "$IMAGE" | awk -F':' '{print $NF}')
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
cd ../gitops/charts
helm package ../../react-baseapp/
helm package ../../frontend/
git add .
Expand Down

0 comments on commit 1e0e20c

Please sign in to comment.