Skip to content

Commit 91b1ea9

Browse files
committed
Revert "Remove changes to registry"
This reverts commit 135fe5d.
1 parent c0c85be commit 91b1ea9

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

ansible/group_vars/alpha-eru.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: eru
33

4-
container_image: registry.runnable.com/runnable/{{ name }}
4+
container_image: runnable/{{ name }}
55
container_tag: "{{ git_branch }}"
66
repo: git@github.com:CodeNow/{{ name }}.git
77
hosted_ports: [ "5501", "5502" ]

ansible/group_vars/alpha-link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: link
22

3-
container_image: registry.runnable.com/runnable/{{ name }}
3+
container_image: runnable/{{ name }}
44
container_tag: "{{ git_branch }}"
55
repo: git@github.com:CodeNow/{{ name }}.git
66
node_version: "4.2.1"

ansible/roles/builder/tasks/main.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,22 @@
9090
loop_control:
9191
loop_var: file_name_item
9292

93+
- name: set whether image will be pushed
94+
when: git_branch | match("^v([0-9]+)\.([0-9]+)\.([0-9]+)$") and ((node_env is defined and node_env=='production-delta') or force_push_image)
95+
set_fact:
96+
push_image: true
97+
98+
- name: login to docker hub
99+
become: yes
100+
when: push_image is defined
101+
command: docker login -u {{ docker_hub_username }} -p {{ docker_hub_password }}
102+
93103
- name: push docker image
94104
become: yes
95-
when: not do_not_push
105+
when: push_image is defined
96106
command: docker push {{ container_image }}:{{ container_tag }}
107+
108+
- name: logout of docker hub
109+
become: yes
110+
when: push_image is defined
111+
command: docker logout

0 commit comments

Comments
 (0)