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 : registry.runnable.com/ runnable/{{ name }}
4+ container_image : 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 : registry.runnable.com/ runnable/{{ name }}
3+ container_image : 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 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
You can’t perform that action at this time.
0 commit comments