mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 21:04:01 +03:00
Update artifact paths and registry URL in release workflow
This commit is contained in:
@@ -193,13 +193,12 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-zip
|
name: linux-zip
|
||||||
path: ${{ github.workspace }}/yt-playlist-linux-*.tar.gz
|
path: ${{ github.workspace }}/dist/linux/yt-playlist-linux-${{ steps.version.outputs.version }}.tar.gz
|
||||||
|
|
||||||
build-docker-image:
|
build-docker-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-linux-package]
|
needs: [build-linux-package]
|
||||||
env:
|
env:
|
||||||
REGISTRY_URL: ghcr.io
|
|
||||||
IMAGE_NAME: youtubeplaylistdownloader
|
IMAGE_NAME: youtubeplaylistdownloader
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -227,14 +226,14 @@ jobs:
|
|||||||
- name: Extract linux artifact
|
- name: Extract linux artifact
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
tar -xzf linux-zip/yt-playlist-linux-*.tar.gz -C .
|
tar -xzf linux-zip/yt-playlist-linux-${{ steps.version.outputs.version }}.tar.gz -C .
|
||||||
|
|
||||||
- name: Build Docker image with release tag
|
- name: Build Docker image with release tag
|
||||||
run: docker build ./ -t ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
run: docker build ./ -t ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
- name: Save Docker image as tar
|
- name: Save Docker image as tar
|
||||||
run: |
|
run: |
|
||||||
docker save -o docker-image.tar ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
docker save -o docker-image.tar ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
- name: Upload docker-image artifact
|
- name: Upload docker-image artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -243,11 +242,11 @@ jobs:
|
|||||||
path: docker-image.tar
|
path: docker-image.tar
|
||||||
|
|
||||||
- name: Build Docker image as latest (distinct digest)
|
- name: Build Docker image as latest (distinct digest)
|
||||||
run: docker build ./ --label build_as_latest=true -t ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
run: docker build ./ --label build_as_latest=true -t ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
- name: Save Docker image as tar
|
- name: Save Docker image as tar
|
||||||
run: |
|
run: |
|
||||||
docker save -o docker-image-latest.tar ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
docker save -o docker-image-latest.tar ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
- name: Upload docker-image-latest artifact
|
- name: Upload docker-image-latest artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -260,7 +259,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-windows-package, build-linux-package, build-docker-image]
|
needs: [build-windows-package, build-linux-package, build-docker-image]
|
||||||
env:
|
env:
|
||||||
REGISTRY_URL: ghcr.io
|
|
||||||
IMAGE_NAME: youtubeplaylistdownloader
|
IMAGE_NAME: youtubeplaylistdownloader
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
@@ -283,7 +282,7 @@ jobs:
|
|||||||
- name: Login to the Container registry
|
- name: Login to the Container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY_URL }}
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -293,7 +292,7 @@ jobs:
|
|||||||
docker load -i docker-image/docker-image.tar
|
docker load -i docker-image/docker-image.tar
|
||||||
|
|
||||||
- name: Push Docker image with release tag
|
- name: Push Docker image with release tag
|
||||||
run: docker push ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
run: docker push ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
- name: Load docker image from tar
|
- name: Load docker image from tar
|
||||||
run: |
|
run: |
|
||||||
@@ -301,7 +300,7 @@ jobs:
|
|||||||
docker load -i docker-image-latest/docker-image-latest.tar
|
docker load -i docker-image-latest/docker-image-latest.tar
|
||||||
|
|
||||||
- name: Push Docker image as latest
|
- name: Push Docker image as latest
|
||||||
run: docker push ${{ env.REGISTRY_URL }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
run: docker push ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|||||||
Reference in New Issue
Block a user