Skip to content

Commit 89271e4

Browse files
committed
Separate org name from username
1 parent e0f1566 commit 89271e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docker-build-push.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
required: true
88
type: boolean
99
description: Whether to push the built images to Docker Hub
10-
docker_username:
10+
docker_org_name:
1111
required: true
1212
type: string
1313
base_commit:
@@ -17,6 +17,8 @@ on:
1717
required: true
1818
type: string
1919
secrets:
20+
docker_username:
21+
required: false
2022
docker_password:
2123
required: false
2224

@@ -35,7 +37,7 @@ jobs:
3537
id: set-matrix
3638
uses: submitty/[email protected]
3739
with:
38-
docker-username: ${{ inputs.docker_username }}
40+
docker-username: ${{ inputs.docker_org_name }}
3941
base-commit: ${{ inputs.base_commit }}
4042
head-commit: ${{ inputs.head_commit }}
4143
docker:
@@ -57,7 +59,7 @@ jobs:
5759
uses: docker/login-action@releases/v1
5860
if: ${{ inputs.push }}
5961
with:
60-
username: ${{ inputs.docker_username }}
62+
username: ${{ secrets.docker_username }}
6163
password: ${{ secrets.docker_password }}
6264
- name: Build and push docker
6365
uses: docker/build-push-action@v4

0 commit comments

Comments
 (0)