Skip to content

Commit b6a735b

Browse files
committed
#39 [docker public hub] fix: update account login info
1 parent ac9a8f5 commit b6a735b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/php-docker-public.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ permissions:
66
contents: write
77

88
env:
9-
DOCKER_ID: ${{ secrets.DOCKER_ID }}
109
IMAGE_NAME: ${{ secrets.IMAGE_NAME }}
11-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
12-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
10+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
11+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
1312

1413
jobs:
1514
shellcheck:
@@ -44,14 +43,14 @@ jobs:
4443
- name: Log into Docker Hub
4544
uses: docker/login-action@v3
4645
with:
47-
username: ${{ env.DOCKER_USERNAME }}
48-
password: ${{ env.DOCKER_PASSWORD }}
46+
username: ${{ env.DOCKERHUB_USERNAME }}
47+
password: ${{ env.DOCKERHUB_TOKEN }}
4948

5049
- name: Extract Docker metadata
5150
id: meta
5251
uses: docker/metadata-action@v5
5352
with:
54-
images: ${{ env.DOCKER_ID }}/${{ env.IMAGE_NAME }}
53+
images: ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
5554
tags: |
5655
type=ref,event=branch
5756
type=ref,event=tag

0 commit comments

Comments
 (0)