From bf436d2fffb0c967fe7a632753c77f207e87bcfc Mon Sep 17 00:00:00 2001 From: Sebastian Reck Date: Fri, 3 Jan 2025 14:20:10 +0100 Subject: [PATCH] reference version var in pipeline --- .github/workflows/deploy-staging-job.yml | 6 +++++- .github/workflows/pipeline.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging-job.yml b/.github/workflows/deploy-staging-job.yml index 26a3bb6..d2c047f 100644 --- a/.github/workflows/deploy-staging-job.yml +++ b/.github/workflows/deploy-staging-job.yml @@ -1,5 +1,9 @@ on: workflow_call: + inputs: + version: + required: true + type: string jobs: deploy-staging: @@ -16,7 +20,7 @@ jobs: uses: digitalservicebund/argocd-deploy@4fac1bb67c92ed168f6d9b22f8779ce241a9e412 # v1.0.0 with: environment: staging - version: ${{ needs.push-frontend-image-to-registry.outputs.version }} + version: ${{ inputs.version }} deploying_repo: ris-adm-vwv-frontend infra_repo: ris-adm-vwv-infra deploy_key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index cb156e7..313c794 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -200,3 +200,5 @@ jobs: id-token: write uses: ./.github/workflows/deploy-staging-job.yml secrets: inherit + with: + version: ${{ needs.push-frontend-image-to-registry.outputs.version }}