1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2026-03-05 05:03:10 +00:00

fix: update Docker Hub username reference to use vars in docker-publish.yml

This commit is contained in:
Sunwuyuan 2026-02-09 10:54:45 +08:00
parent 2dfe698461
commit f0b902e9ad
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -43,7 +43,7 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ env.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata - name: Extract Docker metadata
@ -52,7 +52,7 @@ jobs:
with: with:
images: | images: |
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PROJECT_NAME }} ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PROJECT_NAME }}
${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }} ${{ vars.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr