mirror of https://github.com/halo-dev/halo
Support building Docker image with major version tag (#5304)
#### What type of PR is this? /kind improvement /area core /milestone 2.13.x #### What this PR does / why we need it: This PR supports building Docker image with major version tag, e.g.: `halohub/halo:2`. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/4976 #### Does this PR introduce a user-facing change? ```release-note None ```pull/5311/head
parent
5b93667d8f
commit
27db40f7f6
|
@ -41,8 +41,9 @@ runs:
|
||||||
type=schedule,pattern=nightly-{{date 'YYYYMMDD'}},enabled=${{ github.event_name == 'schedule' }}
|
type=schedule,pattern=nightly-{{date 'YYYYMMDD'}},enabled=${{ github.event_name == 'schedule' }}
|
||||||
type=ref,event=branch,enabled=${{ github.event_name == 'push' }}
|
type=ref,event=branch,enabled=${{ github.event_name == 'push' }}
|
||||||
type=ref,event=pr,enabled=${{ github.event_name == 'pull_request' }}
|
type=ref,event=pr,enabled=${{ github.event_name == 'pull_request' }}
|
||||||
type=semver,pattern={{ version }}
|
type=semver,pattern={{major}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{ version }}
|
||||||
type=sha,enabled=${{ github.event_name == 'push' }}
|
type=sha,enabled=${{ github.event_name == 'push' }}
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
|
|
Loading…
Reference in New Issue