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
John Niang 2024-02-02 16:38:33 +08:00 committed by GitHub
parent 5b93667d8f
commit 27db40f7f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -41,8 +41,9 @@ runs:
type=schedule,pattern=nightly-{{date 'YYYYMMDD'}},enabled=${{ github.event_name == 'schedule' }}
type=ref,event=branch,enabled=${{ github.event_name == 'push' }}
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={{ version }}
type=sha,enabled=${{ github.event_name == 'push' }}
flavor: |
latest=false