Skip to content

Commit

Permalink
Use tags for tagging the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisrp committed Mar 8, 2023
1 parent 0848f89 commit 5527df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=raw,,value={{branch}}-{{sha}}
type=raw,value={{branch}}-{{sha}},enable=${{ !startsWith(github.ref, 'refs/tags/') }}
-
name: Build image
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 5527df2

Please sign in to comment.