Skip to content

Commit

Permalink
Merge pull request #88 from ssi-dk/skp/add-test-env
Browse files Browse the repository at this point in the history
fix: add test env.
  • Loading branch information
sjkp committed Jul 9, 2024
2 parents 062fb6e + 3b6a12f commit 9d4a0ca
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 @@ -137,3 +137,45 @@ jobs:
author_email: [email protected]
cwd: sofi_core_gitops
message: Update deployments with tag "${{ needs.prepare_tag.outputs.tag }}"

commit_to_test:
needs:
- prepare_tag
- build_and_push
environment: test
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/test/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/test/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/test/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/test/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 9d4a0ca

Please sign in to comment.