remove debug, just leave funcitonal lines
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 2m37s
Details
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 2m37s
Details
This commit is contained in:
parent
050d5fa79c
commit
42e18c7e93
|
|
@ -40,17 +40,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
set -x
|
|
||||||
source /home/builder/.bashrc
|
|
||||||
export
|
|
||||||
whoami
|
|
||||||
which gcloud
|
|
||||||
# The next line updates PATH for the Google Cloud SDK.
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
# The next line enables shell command completion for gcloud.
|
# The next line enables shell command completion for gcloud.
|
||||||
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
|
|
||||||
which gcloud
|
|
||||||
gcloud compute addresses describe {{ static_ip_name }} \
|
gcloud compute addresses describe {{ static_ip_name }} \
|
||||||
--region={{ gcp_region }} \
|
--region={{ gcp_region }} \
|
||||||
--project={{ gcp_project }}
|
--project={{ gcp_project }}
|
||||||
|
|
@ -62,6 +55,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute addresses create {{ static_ip_name }} \
|
gcloud compute addresses create {{ static_ip_name }} \
|
||||||
--region={{ gcp_region }} \
|
--region={{ gcp_region }} \
|
||||||
--project={{ gcp_project }} \
|
--project={{ gcp_project }} \
|
||||||
|
|
@ -75,6 +72,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute firewall-rules describe {{ firewall_rule_name }} \
|
gcloud compute firewall-rules describe {{ firewall_rule_name }} \
|
||||||
--project={{ gcp_project }}
|
--project={{ gcp_project }}
|
||||||
register: fw_check
|
register: fw_check
|
||||||
|
|
@ -85,6 +86,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute firewall-rules create {{ firewall_rule_name }} \
|
gcloud compute firewall-rules create {{ firewall_rule_name }} \
|
||||||
--project={{ gcp_project }} \
|
--project={{ gcp_project }} \
|
||||||
--allow=tcp:3001 \
|
--allow=tcp:3001 \
|
||||||
|
|
@ -100,6 +105,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute instances describe {{ instance_name }} \
|
gcloud compute instances describe {{ instance_name }} \
|
||||||
--zone={{ gcp_zone }} \
|
--zone={{ gcp_zone }} \
|
||||||
--project={{ gcp_project }}
|
--project={{ gcp_project }}
|
||||||
|
|
@ -111,6 +120,10 @@
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute instances create-with-container {{ instance_name }} \
|
gcloud compute instances create-with-container {{ instance_name }} \
|
||||||
--project={{ gcp_project }} \
|
--project={{ gcp_project }} \
|
||||||
--zone={{ gcp_zone }} \
|
--zone={{ gcp_zone }} \
|
||||||
|
|
@ -128,6 +141,10 @@
|
||||||
- name: Fetch instance public IP address
|
- name: Fetch instance public IP address
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi
|
||||||
|
# The next line enables shell command completion for gcloud.
|
||||||
|
if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi
|
||||||
gcloud compute instances describe {{ instance_name }} \
|
gcloud compute instances describe {{ instance_name }} \
|
||||||
--zone={{ gcp_zone }} \
|
--zone={{ gcp_zone }} \
|
||||||
--project={{ gcp_project }} \
|
--project={{ gcp_project }} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue