Publish image
authorLorin Hochstein <lhochstein@netflix.com>
Sun, 5 Feb 2017 04:18:15 +0000 (20:18 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Sun, 5 Feb 2017 04:18:15 +0000 (20:18 -0800)
ch13/Makefile
ch13/publish.yml [new file with mode: 0644]

index b619d9a..afa97c8 100644 (file)
@@ -1,8 +1,11 @@
-.PHONY: start
+.PHONY: start publish
 
 start:
        ansible-playbook ghost.yml
 
+publish:
+       ansible-playbook publish.yml
+
 # Generate self-signed certs for localhost
 ssl: certs/nginx.crt certs/nginx.key
 
diff --git a/ch13/publish.yml b/ch13/publish.yml
new file mode 100644 (file)
index 0000000..9e3330a
--- /dev/null
@@ -0,0 +1,9 @@
+- name: publish images to docker hub
+  hosts: localhost
+  gather_facts: False
+  tasks:
+    - name: push image up
+      docker_image:
+        name: nginx-ghost
+        repository: lorin/nginx-ghost
+        push: yes