mirror of
https://github.com/koodiklinikka/playbooks.git
synced 2026-01-26 03:03:59 +00:00
restart always and only build container when tohtori has changed
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
args:
|
||||
chdir: "{{ koodiklinikka_tohtori_app_path}}/script"
|
||||
sudo: yes
|
||||
#when: gitclone.changed
|
||||
when: gitclone.changed
|
||||
register: container
|
||||
|
||||
- name: tag previous version
|
||||
@@ -43,7 +43,7 @@
|
||||
when: old_containers.stdout != ""
|
||||
|
||||
- name: Start the container
|
||||
shell: docker run -d --name {{ koodiklinikka_tohtori_container_name }} {{ koodiklinikka_tohtori_container_name }}:latest
|
||||
shell: docker run --restart=always -d --name {{ koodiklinikka_tohtori_container_name }} {{ koodiklinikka_tohtori_container_name }}:latest
|
||||
when: container is defined and container.changed
|
||||
|
||||
- name: get old images
|
||||
|
||||
Reference in New Issue
Block a user