Skip to content

Commit a57b84d

Browse files
committed
github: Switch DOCKER_USERNAME to a variable instead of a secret
This will allow avoiding masking out this string from the log output.
1 parent 6144b2e commit a57b84d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
if: ${{inputs.login}}
5151
uses: docker/login-action@v3
5252
with:
53-
username: ${{secrets.DOCKER_USERNAME}}
53+
username: ${{vars.DOCKER_USERNAME}}
5454
password: ${{secrets.DOCKER_PASSWORD}}
5555
- name: Build Docker images
5656
uses: docker/build-push-action@v5
@@ -99,7 +99,7 @@ jobs:
9999
if: ${{inputs.login}}
100100
uses: docker/login-action@v3
101101
with:
102-
username: ${{secrets.DOCKER_USERNAME}}
102+
username: ${{vars.DOCKER_USERNAME}}
103103
password: ${{secrets.DOCKER_PASSWORD}}
104104
- name: Build Docker images
105105
uses: docker/build-push-action@v5
@@ -134,7 +134,7 @@ jobs:
134134
- name: Log in to Docker Hub
135135
uses: docker/login-action@v3
136136
with:
137-
username: ${{secrets.DOCKER_USERNAME}}
137+
username: ${{vars.DOCKER_USERNAME}}
138138
password: ${{secrets.DOCKER_PASSWORD}}
139139
- name: Create final image
140140
run: |

0 commit comments

Comments
 (0)