chore: update release action by branch
This commit is contained in:
parent
84ef3558ab
commit
dfacb33abe
1 changed files with 4 additions and 4 deletions
|
|
@ -3,8 +3,8 @@ name: build-and-push-release-image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
# Run on pushing branches like 'v1.0.0', 'v0.22.2rc'
|
# Run on pushing branches like 'release/1.0.0'.
|
||||||
- "v*"
|
- "release/*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-release-image:
|
build-and-push-release-image:
|
||||||
|
|
@ -20,9 +20,9 @@ jobs:
|
||||||
|
|
||||||
- name: Extract build args
|
- name: Extract build args
|
||||||
# Extract version from tag name
|
# Extract version from tag name
|
||||||
# Example: tag name `v1.0.0` sets up env.VERSION=1.0.0
|
# Example: tag name `release/1.0.0` sets up env.VERSION=1.0.0
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
|
echo "VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue