-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 723 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 723 Bytes
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
.PHONY: build
build:
rm frontend/bundles/*
yarn run build
sudo docker-compose -f deployment/docker-compose.yml build
# for local testing
.PHONY: production-up-locally
production-up-locally:
sudo docker-compose -f deployment/docker-compose.yml up
.PHONY: push
push:
sudo docker push ${CONTAINER_REGISTRY}/recordlibfrontend:${CONTAINER_TAG}
sudo docker push ${CONTAINER_REGISTRY}/recordlibdjango:${CONTAINER_TAG}
sudo docker push ${CONTAINER_REGISTRY}/recordlibdb:${CONTAINER_TAG}
# deploy is used to get the newest images running on a remote host.
# Assumes that the host is set up to receive this command.
.PHONY: deploy
deploy:
ssh ${HOST}; cd recordlib; ./update.sh
build-push-deploy: build push deploy