Pull latest ruby docker image when deploying code

This commit is contained in:
2016-02-10 09:41:38 -05:00
parent e39f2597a8
commit 68ac01cd6d

View File

@@ -10,6 +10,9 @@
- name: Refresh code - name: Refresh code
command: chdir=/root/wrestlingApp git pull origin master command: chdir=/root/wrestlingApp git pull origin master
- name: Pull latest ruby image
command: docker pull ruby:2.3.0
- name: Create apache docker image - name: Create apache docker image
command: chdir=/root/wrestlingApp docker build -t wrestlingdev-web -f rails-prod-Dockerfile . command: chdir=/root/wrestlingApp docker build -t wrestlingdev-web -f rails-prod-Dockerfile .
@@ -26,6 +29,9 @@
tasks: tasks:
- name: Refresh code - name: Refresh code
command: chdir=/root/wrestlingApp git pull origin master command: chdir=/root/wrestlingApp git pull origin master
- name: Pull latest ruby image
command: docker pull ruby:2.3.0
- name: Create apache docker image - name: Create apache docker image
command: chdir=/root/wrestlingApp docker build -t wrestlingdev-worker -f rails-prod-Dockerfile . command: chdir=/root/wrestlingApp docker build -t wrestlingdev-worker -f rails-prod-Dockerfile .