Skip to content

Commit

Permalink
fix: incorrect image release tags in build (#2228)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 authored Aug 23, 2024
1 parent a250304 commit 50e9d26
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=pr
type=ref,event=branch,branch=main,latest=true
type=ref,event=branch,branch=main
type=ref,event=branch,branch!=main
type=semver,pattern={{version}},branch=main,latest=false
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=tag
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=ref,event=pr
- name: Show tags
run: |
Expand All @@ -61,6 +59,7 @@ jobs:
with:
context: .
file: ./Dockerfile.slim
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-slim
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down

0 comments on commit 50e9d26

Please sign in to comment.