Fix release workflow tag reference
- Use gitea.ref_name directly for tag - Hardcode username as sansan - Remove version extraction step Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -26,17 +26,9 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.sanplex.xyz
|
registry: gitea.sanplex.xyz
|
||||||
username: ${{ gitea.repository_owner }}
|
username: sansan
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Extract version from tag
|
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
TAG=${GITEA_REF#refs/tags/}
|
|
||||||
VERSION=${TAG#v}
|
|
||||||
echo "TAG=$TAG" >> $GITHUB_OUTPUT
|
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push multi-arch image
|
- name: Build and push multi-arch image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -45,8 +37,7 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
gitea.sanplex.xyz/sansan/musicfrontend:${{ steps.meta.outputs.VERSION }}
|
gitea.sanplex.xyz/sansan/musicfrontend:${{ gitea.ref_name }}
|
||||||
gitea.sanplex.xyz/sansan/musicfrontend:${{ steps.meta.outputs.TAG }}
|
|
||||||
gitea.sanplex.xyz/sansan/musicfrontend:latest
|
gitea.sanplex.xyz/sansan/musicfrontend:latest
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user