File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments