Update roles/demolamp/tasks/build.yml
This commit is contained in:
@@ -28,12 +28,12 @@
|
||||
state: absent
|
||||
|
||||
# - name: Docker login to ECV private repository if not pull from local registry
|
||||
# community.docker.docker_login:
|
||||
# registry: "{{ imagePushDomain }}"
|
||||
# username: "{{ registryUser }}"
|
||||
# password: "{{ registryPass }}"
|
||||
# state: present
|
||||
# when: not localRegistry | bool
|
||||
community.docker.docker_login:
|
||||
registry: "{{ imagePushDomain }}"
|
||||
username: "{{ registryUser }}"
|
||||
password: "{{ registryPass }}"
|
||||
state: present
|
||||
when: not localRegistry | bool
|
||||
|
||||
- name: Build demolamp image
|
||||
community.docker.docker_image:
|
||||
@@ -43,9 +43,9 @@
|
||||
build:
|
||||
path: "{{ build_root_abspath }}"
|
||||
pull: false
|
||||
# push: yes
|
||||
# repository: "{{ demolamp.pushRepoName }}:{{ ansTagVer }}"
|
||||
# force_tag: yes
|
||||
# timeout: 300
|
||||
# state: present
|
||||
push: yes
|
||||
repository: "{{ demolamp.pushRepoName }}:{{ ansTagVer }}"
|
||||
force_tag: yes
|
||||
timeout: 300
|
||||
state: present
|
||||
|
||||
|
||||
Reference in New Issue
Block a user