IMAGE_NAME

This commit is contained in:
YuCat-OVO 2024-03-02 01:15:03 +08:00
parent b55b45fadd
commit 993a235182

View File

@ -12,12 +12,11 @@ on:
- "get_version.py" - "get_version.py"
env: env:
REGISTRY: ghcr.io IMAGE_NAME: BaiduNetdisk-Docker
IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
Build: Build:
name: Build AMD64 name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -45,8 +44,8 @@ jobs:
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
${{ env.IMAGE_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} ghcr.io/${{ github.repository }}
tags: | tags: |
type=raw,value=${{ steps.set-vars.outputs.VERSION }} type=raw,value=${{ steps.set-vars.outputs.VERSION }}
type=raw,value=${{ steps.set-vars.outputs.BRACH }} type=raw,value=${{ steps.set-vars.outputs.BRACH }}
@ -67,7 +66,7 @@ jobs:
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}