Skip to content

Commit

Permalink
Push only one image at a time in GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanay Kothari committed Jan 24, 2025
1 parent 1d2c782 commit d714d72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-container-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]

pull_request: # TODO: Remove after testing
env:
REGISTRY: ghcr.io

Expand All @@ -17,6 +17,7 @@ jobs:
packages: write
strategy:
fail-fast: true
max-parallel: 1
matrix:
include:
# github.repository as <account>/<repo>
Expand Down Expand Up @@ -50,8 +51,9 @@ jobs:
with:
images: ${{ matrix.image }}
# Use latest tag on default branch (main), otherwise use the tag
# type=raw, value=latest, enable={{is_default_branch}}
tags: |
type=raw, value=latest, enable={{is_default_branch}}
type=raw, value=latest, enable=${{ github.event == 'pull_request' }}
type=ref, event=tag
flavor: |
latest=false
Expand Down

0 comments on commit d714d72

Please sign in to comment.