chore: fix docker images

This commit is contained in:
Vincent Young 2023-05-30 01:21:20 +08:00
parent 2ced7ee49b
commit 80f63f1174
No known key found for this signature in database
GPG Key ID: 84A0830C90354A56

View File

@ -9,7 +9,8 @@ on:
env: env:
# github.repository as <account>/<repo> # github.repository as <account>/<repo>
IMAGE_NAME: missuo/deeplx DOCKER_IMAGE_NAME: missuo/deeplx
GHCR_IMAGE_NAME: ${{ github.repository }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GHCR_TOKEN: ${{ secrets.GT_Token }} GHCR_TOKEN: ${{ secrets.GT_Token }}
@ -56,8 +57,8 @@ jobs:
with: with:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
docker.io/${{ env.IMAGE_NAME }} docker.io/${{ env.DOCKER_IMAGE_NAME }}
ghcr.io/${{ env.IMAGE_NAME }} ghcr.io/${{ env.GHCR_IMAGE_NAME }}
# generate Docker tags based on the following events/attributes # generate Docker tags based on the following events/attributes
tags: | tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}