mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 04:53:58 +03:00
Remove Docker image build workflow: delete build-docker-image.yml(redundant)
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
# Build and push Docker image to Gitea container registry
|
||||
name: Build Docker Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
#push:
|
||||
#tags:
|
||||
#- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REGISTRY_URL: git.darkzoul.org
|
||||
REGISTRY_OWNER: dark_zoul
|
||||
IMAGE_NAME: youtube-playlist-downloader
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://gitea.com/actions/checkout@v5
|
||||
|
||||
- name: Extract tag name
|
||||
run: |
|
||||
set -e
|
||||
REF="${GITEA_REF:-$GITHUB_REF}"
|
||||
TAG="${REF#refs/tags/}"
|
||||
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Docker image with release tag
|
||||
run: docker build ./ -t ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_OWNER }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
|
||||
- name: Login to the Container registry
|
||||
uses: https://gitea.com/docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_URL }}
|
||||
username: ${{ env.REGISTRY_OWNER }}
|
||||
password: ${{ secrets.MY_REGISTRY_ACCESS_TOKEN }}
|
||||
|
||||
- name: Push Docker image with release tag
|
||||
run: docker push ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_OWNER }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
|
||||
- name: Build Docker image as latest (distinct digest)
|
||||
run: docker build ./ --label build_as_latest=true -t ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_OWNER }}/${{ env.IMAGE_NAME }}:latest
|
||||
|
||||
- name: Push Docker image as latest
|
||||
run: docker push ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_OWNER }}/${{ env.IMAGE_NAME }}:latest
|
||||
Reference in New Issue
Block a user