Skip to content

Commit

Permalink
reference version var in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
reckseba committed Jan 3, 2025
1 parent 7b099df commit bf436d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-staging-job.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on:
workflow_call:
inputs:
version:
required: true
type: string

jobs:
deploy-staging:
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit bf436d2

Please sign in to comment.