Skip to content

Commit 0ce1c08

Browse files
committed
disable push to dockerhub
1 parent 1073263 commit 0ce1c08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

azure-pipelines/templates/docker-build-push-jobs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ parameters:
4848
type: string
4949
displayName: 'DockerHub Registry URL. For Docker Hub it is: docker.io/kaminome.'
5050

51+
- name: shouldPushToDockerHub
52+
type: boolean
53+
default: false
54+
5155
- name: shouldPushToAcr
5256
type: boolean
5357
default: false
@@ -225,7 +229,7 @@ jobs:
225229

226230
- task: Docker@2
227231
displayName: 'Push to DockerHub'
228-
condition: succeeded()
232+
condition: and(succeeded(), eq(${{ parameters.shouldPushToDockerHub }}, true))
229233
inputs:
230234
command: push
231235
containerRegistry: ${{ parameters.dockerServiceConnection }}

0 commit comments

Comments
 (0)