Skip to content

Commit

Permalink
Only tag latest on default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Dec 12, 2023
1 parent 448eca0 commit 42eff0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:
with:
images: |
ghcr.io/${{ github.repository }}-uvicorn
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
Expand All @@ -152,6 +154,8 @@ jobs:
with:
images: |
ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
Expand All @@ -163,8 +167,9 @@ jobs:
# platforms: linux/amd64,linux/arm64
# context: .
# file: dockerfiles/Dockerfile.uvicorn
# push: true
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta-uvicorn.outputs.tags }}
# labels: ${{ steps.meta-uvicorn.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

Expand All @@ -175,8 +180,9 @@ jobs:
platforms: linux/amd64,linux/arm64
context: .
file: dockerfiles/Dockerfile.gunicorn
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-gunicorn.outputs.tags }}
labels: ${{ steps.meta-gunicorn.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit 42eff0c

Please sign in to comment.