mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-09-22 06:12:21 +03:00
Refactor Docker image build workflow:do it as a job in the release.yml
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user