Skip to content

Commit

Permalink
Pass container-registry as input
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Jan 10, 2025
1 parent f73230f commit 6636b1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/frontend-push-image-to-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
run-id:
required: true
type: string
container-registry:
required: true
type: string
image-ref:
required: true
type: string
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 6636b1e

Please sign in to comment.