Skip to content

Commit 0e5e257

Browse files
committed
feat(docker-build): add registry input and update secret names
1 parent 00a8365 commit 0e5e257

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/docker-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ on:
2727
description: 'Push Docker Image to Registry'
2828
default: false
2929
type: boolean
30+
registry:
31+
description: 'Docker Registry'
32+
default: 'docker.io'
33+
type: string
3034
secrets:
31-
dockerhub-username:
35+
username:
3236
required: false
33-
dockerhub-pat:
37+
password:
3438
required: false
3539

3640
jobs:
@@ -50,8 +54,9 @@ jobs:
5054
if: ${{ inputs.push }}
5155
uses: docker/login-action@v3
5256
with:
53-
username: ${{ secrets.dockerhub-username }}
54-
password: ${{ secrets.dockerhub-pat }}
57+
registry: ${{ inputs.registry }}
58+
username: ${{ secrets.username }}
59+
password: ${{ secrets.password }}
5560

5661
- name: Run Hadolint Dockerfile linter
5762
if: ${{ inputs.hadolint }}

0 commit comments

Comments
 (0)