Skip to content

Commit 1d4da23

Browse files
authored
Merge pull request #679 from CodeNow/5-24-fix-runnable-angular-deployments
Add registry login/logout to container start
2 parents 144cb6b + 51a302c commit 1d4da23

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • ansible/roles/container_start/tasks

ansible/roles/container_start/tasks/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
debug:
3939
msg: starting this many containers -- {{ number_of_containers }}
4040

41+
- name: login to registry
42+
delegate_to: "{{ builder }}"
43+
tags: deploy
44+
become: yes
45+
command: docker login -u {{ registry_username }} -p {{ registry_token }} -e "info@runnable.com" {{ registry_host }}
46+
4147
- name: start new container
4248
delegate_to: "{{ builder }}"
4349
tags: deploy
@@ -68,3 +74,9 @@
6874
- remove all hosts from redis key
6975
- put new hosts on redis keys
7076
- stop old containers
77+
78+
- name: logout of registry
79+
delegate_to: "{{ builder }}"
80+
tags: deploy
81+
become: yes
82+
command: docker logout {{ registry_host }}

0 commit comments

Comments
 (0)