diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2ef88cd..6ff2f0f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,6 +1,8 @@ name: Docker on: push: + branches: + - "main" tags: - "v*" @@ -74,9 +76,10 @@ jobs: images: ghcr.io/txpipe/dolos tags: | type=raw,value=latest,enable={{is_default_branch}} - type=semver,pattern=v{{major}} - type=semver,pattern=v{{major}}.{{minor}} - type=semver,pattern=v{{version}} + type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern=v{{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern=v{{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern=v{{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} type=sha - name: Login to DockerHub