Skip to content

Commit b7400ae

Browse files
authored
👷 docke rlogin only if docker enabled (#39)
1 parent efd4eba commit b7400ae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ inputs:
1414
required: true
1515
dockerusername:
1616
description: 'Username for the Docker Registry'
17-
required: true
17+
required: false
1818
dockerpassword:
1919
description: 'Password for the Docker Registry'
20-
required: true
20+
required: false
2121
dockerfile:
2222
description: 'Path of the Dockerfile. Should be relative to input.workingdirectory'
2323
required: true
@@ -50,7 +50,7 @@ inputs:
5050
default: 'staffbot@staffbase.com'
5151
gitopstoken:
5252
description: 'GitHub Token for GitOps'
53-
required: true
53+
required: false
5454
gitopsdev:
5555
description: 'Files which should be updated by the GitHub Action for DEV'
5656
required: false
@@ -113,9 +113,11 @@ runs:
113113
echo ::set-output name=push::${PUSH}
114114
115115
- name: Set up Docker Buildx
116+
if: inputs.dockerenabled == 'true'
116117
uses: docker/setup-buildx-action@v2
117118

118119
- name: Login to Registry
120+
if: inputs.dockerenabled == 'true'
119121
uses: docker/login-action@v2
120122
with:
121123
registry: ${{ inputs.dockerregistry }}

0 commit comments

Comments
 (0)