From adb993c689dc5f20aeb14dd7cf8d723a9a148327 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 4 Feb 2017 20:18:15 -0800 Subject: [PATCH] Publish image --- ch13/Makefile | 5 ++++- ch13/publish.yml | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ch13/publish.yml diff --git a/ch13/Makefile b/ch13/Makefile index b619d9a..afa97c8 100644 --- a/ch13/Makefile +++ b/ch13/Makefile @@ -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 index 0000000..9e3330a --- /dev/null +++ b/ch13/publish.yml @@ -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 -- 2.44.0