Update roles/demolamp/tasks/build.yml

This commit is contained in:
2024-02-21 17:14:20 +08:00
parent d2ec4f4bd9
commit 235e0e10ed

View File

@@ -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