-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (21 loc) · 901 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY : run test test_up test_run test_down build push
run:
docker-compose up
test: test_up test_run test_down
test_up:
docker-compose up -d
test_run:
export UPDATE_SECRET=`grep UPDATE_SECRET docker-compose.yml | head -1 | awk '{ print $2 }' | cut -d'=' -f2`; \
pytest --docker-compose-no-build --use-running-containers;
test_down:
docker-compose down
build:
docker build -t local-resume/python_resume .
docker build -t local-resume/pandoc_resume -f pandoc-sidecar/Dockerfile pandoc-sidecar/
@$(eval python_resume=`docker images local-resume/python_resume --format "{{.ID}}"`)
docker tag $(python_resume) jondkelley/python_resume:latest
@$(eval pandoc_resume=`docker images local-resume/pandoc_resume --format "{{.ID}}"`)
docker tag $(pandoc_resume) jondkelley/pandoc_resume:latest
push:
docker push jondkelley/python_resume:latest
docker push jondkelley/pandoc_resume:latest