Skip to content

Commit 7f4e0a6

Browse files
committed
branch
1 parent 9b77757 commit 7f4e0a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags:
66
- '*'
77
branches:
8-
- main
8+
- '**'
99
workflow_dispatch:
1010

1111
env:
@@ -42,11 +42,11 @@ jobs:
4242
with:
4343
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4444
tags: |
45-
type=semver,pattern={{version}}
46-
type=semver,pattern={{major}}.{{minor}}
45+
type=semver,pattern={{version}},enable=${{ github.ref_type == 'tag' }}
46+
type=semver,pattern={{major}}.{{minor}},enable=${{ github.ref_type == 'tag' }}
4747
type=raw,value=latest,enable=${{ github.ref_type == 'tag' }}
4848
type=raw,value=nightly,enable=${{ github.ref == 'refs/heads/main' }}
49-
type=sha
49+
type=sha,prefix=sha-
5050
5151
- name: Build and push
5252
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)