File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22name : eru
33
4- container_image : runnable/{{ name }}
4+ container_image : registry.runnable.com/ runnable/{{ name }}
55container_tag : " {{ git_branch }}"
66repo : git@github.com:CodeNow/{{ name }}.git
77hosted_ports : [ "5501", "5502" ]
Original file line number Diff line number Diff line change 11name : link
22
3- container_image : runnable/{{ name }}
3+ container_image : registry.runnable.com/ runnable/{{ name }}
44container_tag : " {{ git_branch }}"
55repo : git@github.com:CodeNow/{{ name }}.git
66node_version : " 4.2.1"
Original file line number Diff line number Diff line change 8383 loop_control :
8484 loop_var : file_name_item
8585
86- - name : set whether image will be pushed
87- 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)
88- set_fact :
89- push_image : true
90-
91- - name : login to docker hub
92- become : yes
93- when : push_image is defined
94- command : docker login -u {{ docker_hub_username }} -p {{ docker_hub_password }}
95-
9686- name : push docker image
9787 become : yes
98- when : push_image is defined
88+ when : not do_not_push
9989 command : docker push {{ container_image }}:{{ container_tag }}
100-
101- - name : logout of docker hub
102- become : yes
103- when : push_image is defined
104- command : docker logout
You can’t perform that action at this time.
0 commit comments