Skip to content

Commit 9c28853

Browse files
committed
[bfops/dockerhub-token]: WIP
1 parent 33d7e42 commit 9c28853

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,6 @@ jobs:
689689
key: Unity-${{ github.head_ref }}
690690
restore-keys: Unity-
691691

692-
- name: Login to DockerHub
693-
uses: docker/login-action@v2
694-
with:
695-
username: ${{ vars.DOCKERHUB_USERNAME }}
696-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
697-
698692
- name: Run Unity tests
699693
uses: game-ci/unity-test-runner@v4
700694
with:

.github/workflows/docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
uses: docker/login-action@v2
4141
with:
4242
username: ${{ vars.DOCKERHUB_USERNAME }}
43-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
43+
# Docker Hub access tokens are passed to docker/login-action via the password input.
44+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4445
- name: Build and push
4546
uses: docker/build-push-action@v4
4647
with:
@@ -101,7 +102,8 @@ jobs:
101102
uses: docker/login-action@v2
102103
with:
103104
username: ${{ vars.DOCKERHUB_USERNAME }}
104-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
105+
# Docker Hub access tokens are passed to docker/login-action via the password input.
106+
password: ${{ secrets.DOCKERHUB_TOKEN }}
105107
- name: Build and push
106108
uses: docker/build-push-action@v4
107109
with:

.github/workflows/tag-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
uses: docker/login-action@v2
1515
with:
1616
username: ${{ vars.DOCKERHUB_USERNAME }}
17-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
17+
# Docker Hub access tokens are passed to docker/login-action via the password input.
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
1819

1920
- name: Retag the image
2021
run: |

0 commit comments

Comments
 (0)