mirror of
https://github.com/usememos/memos.git
synced 2025-03-06 02:23:29 +08:00
chore: fix build tag
This commit is contained in:
parent
721aa3c907
commit
78c159cd59
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ jobs:
|
||||||
|
|
||||||
- name: Extract build args
|
- name: Extract build args
|
||||||
# Extract version from branch name
|
# Extract version from branch name
|
||||||
# Example: branch name `release/v1.0.0` sets up env.VERSION=1.0.0
|
# Example: branch name `release/1.0.0` sets up env.VERSION=1.0.0
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=${GITHUB_REF_NAME#release/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@v2
|
uses: docker/login-action@v2
|
||||||
|
@ -41,4 +41,4 @@ jobs:
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: neosmemo/memos:latest, neosmemo/memos:${{ env.VERSION }}
|
tags: neosmemo/memos:latest, neosmemo/memos:v${{ env.VERSION }}
|
||||||
|
|
Loading…
Reference in a new issue