Skip to content

Commit

Permalink
feat: add 'make release'
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jan 15, 2019
1 parent 102b15b commit 6a651d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,17 @@ lint:

.PHONY: docker.up
docker.up:
docker-compose build --pull
docker-compose up -d --force-recreate --remove-orphans

.PHONY: docker.build
docker.build:
docker build -t ultreme/calcbiz .

.PHONY: docker.release
docker.release: docker.build
docker push ultreme/calcbiz

.PHONY: release
release: docker.release
ssh zrwf.m.42.am -xec 'cd ~/go/src/ultre.me/calcbiz; git pull; make docker.up'
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ version: '2'

services:
calc-www:
labels:
io.rancher.container.pull_image: always
image: ultreme/calcbiz:latest
#labels:
# io.rancher.container.pull_image: always
#image: ultreme/calcbiz:latest
build: .
environment:
- VIRTUAL_HOST=calc-api.m.42.am
#- VIRTUAL_PORT=
Expand Down

0 comments on commit 6a651d2

Please sign in to comment.