Refactor Docker image build workflow:do it as a job in the release.yml

This commit is contained in:
2025-10-16 21:58:21 +03:00
parent 277d899993
commit 0297fd750e
2 changed files with 65 additions and 24 deletions
+3 -21
View File
@@ -3,9 +3,9 @@ name: Build Docker Image
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
#push:
#tags:
#- "v*.*.*"
jobs:
build:
@@ -24,24 +24,6 @@ jobs:
REF="${GITEA_REF:-$GITHUB_REF}"
TAG="${REF#refs/tags/}"
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Download linux-zip artifact from other run
uses: christopherhx/gitea-download-artifact@v4
with:
name: linux-zip
github-token: ${{ secrets.REPO_READ }}
repository: ${{ github.repository }}
run-id: ${{ github.run_id }}
- name: Extract linux-zip artifact
run: |
set -e
tar -xzf linux-zip.tar.gz
- name: Build Docker image with release tag
run: docker build ./ -t ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_OWNER }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}