Skip to content

Commit

Permalink
fix: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jul 28, 2024
1 parent 4870433 commit a948555
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build-and-push-release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ jobs:
tags: |
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
${{ startsWith(github.ref, 'refs/tags/') && 'type=raw,value=stable' }}
flavor: |
latest=true
labels: |
org.opencontainers.image.version=${{ env.VERSION }}
# Add stable tag if it's from a tag release.
- name: Add stable tag
if: startsWith(github.ref, 'refs/tags/')
run: echo "STABLE_TAG=stable" >> $GITHUB_ENV

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -75,5 +71,5 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}${{ env.STABLE_TAG && ','+env.STABLE_TAG }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit a948555

Please sign in to comment.