We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a8365 commit 0e5e257Copy full SHA for 0e5e257
.github/workflows/docker-build.yml
@@ -27,10 +27,14 @@ on:
27
description: 'Push Docker Image to Registry'
28
default: false
29
type: boolean
30
+ registry:
31
+ description: 'Docker Registry'
32
+ default: 'docker.io'
33
+ type: string
34
secrets:
- dockerhub-username:
35
+ username:
36
required: false
- dockerhub-pat:
37
+ password:
38
39
40
jobs:
@@ -50,8 +54,9 @@ jobs:
50
54
if: ${{ inputs.push }}
51
55
uses: docker/login-action@v3
52
56
with:
53
- username: ${{ secrets.dockerhub-username }}
- password: ${{ secrets.dockerhub-pat }}
57
+ registry: ${{ inputs.registry }}
58
+ username: ${{ secrets.username }}
59
+ password: ${{ secrets.password }}
60
61
- name: Run Hadolint Dockerfile linter
62
if: ${{ inputs.hadolint }}
0 commit comments