🐛 fix: github action

This commit is contained in:
MartialBE 2024-05-25 15:10:39 +08:00
parent d5d601263b
commit 578c7422b0
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ env.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} # Replace with your Docker Hub password secret
- name: Docker meta
@ -85,7 +85,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}-en
docker.io/${{ env.DOCKER_HUB_USERNAME }}/${{ env.DOCKER_HUB_REPO_EN }}
docker.io/${{ vars.DOCKER_HUB_USERNAME }}/${{ vars.DOCKER_HUB_REPO_EN }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' }}

View File

@ -72,7 +72,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ env.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} # Replace with your Docker Hub password secret
- name: Docker meta
@ -82,7 +82,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}
docker.io/${{ env.DOCKER_HUB_USERNAME }}/${{ env.DOCKER_HUB_REPO }}
docker.io/${{ vars.DOCKER_HUB_USERNAME }}/${{ vars.DOCKER_HUB_REPO }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' }}