Skip to content

Commit

Permalink
fix: update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
skpdelegate committed Dec 18, 2024
1 parent 32e5d63 commit d72eee6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,45 @@ jobs:
author_email: [email protected]
cwd: sofi_core_gitops
message: Update deployments with tag "${{ needs.prepare_tag.outputs.tag }}"

commit_to_prod:
needs:
- prepare_tag
- build_and_push
environment: prod
permissions:
contents: write

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ssi-dk/sofi_core_gitops
ref: main
path: sofi_core_gitops
token: "${{ secrets.ACTION_PAT }}"

- name: Update Image Tags
uses: mikefarah/yq@master
with:
cmd: |
# sap-web
yq e '.images[] |= select(.name == "ghcr.io/ssi-dk/sap-web").newTag = "${{ needs.prepare_tag.outputs.tag }}"' -i ./sofi_core_gitops/apps/prod/sap-web/kustomization.yaml
# sap-api
yq e '.images[] |= select(.name == "ghcr.io/ssi-dk/sap-api").newTag = "${{ needs.prepare_tag.outputs.tag }}"' -i ./sofi_core_gitops/apps/prod/sap-api/kustomization.yaml
# bifrost-queue-broker
yq e '.images[] |= select(.name == "ghcr.io/ssi-dk/bifrost-queue-broker").newTag = "${{ needs.prepare_tag.outputs.tag }}"' -i ./sofi_core_gitops/apps/prod/bifrost-queue-broker/kustomization.yaml
# bifrost-listener
yq e '.images[] |= select(.name == "ghcr.io/ssi-dk/bifrost-listener").newTag = "${{ needs.prepare_tag.outputs.tag }}"' -i ./sofi_core_gitops/apps/prod/bifrost-listener/kustomization.yaml
- uses: EndBug/add-and-commit@v9
with:
author_name: GitOps Bot
author_email: [email protected]
cwd: sofi_core_gitops
message: Update deployments with tag "${{ needs.prepare_tag.outputs.tag }}"

0 comments on commit d72eee6

Please sign in to comment.