From 6636b1e2e4b4bfa2e093cdde02493b3d8202e393 Mon Sep 17 00:00:00 2001 From: Hannes Michalek Date: Fri, 10 Jan 2025 15:36:28 +0100 Subject: [PATCH] Pass container-registry as input --- .github/workflows/frontend-push-image-to-registry.yml | 3 +++ .github/workflows/pipeline.yml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-push-image-to-registry.yml b/.github/workflows/frontend-push-image-to-registry.yml index 88ccf76..626d243 100644 --- a/.github/workflows/frontend-push-image-to-registry.yml +++ b/.github/workflows/frontend-push-image-to-registry.yml @@ -4,6 +4,9 @@ on: run-id: required: true type: string + container-registry: + required: true + type: string image-ref: required: true type: string diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 5385168..d36b49d 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -41,7 +41,7 @@ jobs: frontend-push-image-to-registry: if: ${{ github.ref == 'refs/heads/main' }} - # For PR releases, labels could be used like this: + # For PR releases, labels could be used like this: # if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'dev-env') || contains(github.event.labeled.labels.*.name, 'dev-env') }} needs: - security-jobs @@ -55,6 +55,7 @@ jobs: packages: write with: run-id: ${{ github.run_id }} + container-registry: ghcr.io image-ref: ghcr.io/${{ github.repository }}-frontend:${{ github.event.pull_request.head.sha || github.sha }} frontend-deploy-staging: