-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (31 loc) · 924 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
29
30
31
32
33
34
35
36
37
38
39
40
SHELL := /usr/bin/env bash
ROOT := $$(pwd)
REGISTRY_URL := docker.pkg.github.com
REGISTRY_USERNAME := tedmiston
REGISTRY_PREFIX := $(REGISTRY_URL)/$(REGISTRY_USERNAME)/qcbrunch
include docker/*/Makefile
.PHONY: install
install:
npm install
.PHONY: run
run:
cd qcbrunch-cli && \
qcbrunch dev run
.PHONY: tree
tree:
tree -I node_modules
.PHONY: publish-image
publish-image:
echo $(REGISTRY_TOKEN) | docker login --username=$(REGISTRY_USERNAME) --password-stdin $(REGISTRY_URL) && \
docker push $(REGISTRY_PREFIX)/$(IMAGE) && \
docker logout $(REGISTRY_URL)
.PHONY: deploy-dev
deploy-dev:
cd build && \
sudo vercel link --token=$(ZEIT_TOKEN) --yes --project=qcbrunch-dev && \
sudo vercel deploy --token=$(ZEIT_TOKEN) --yes --prod
.PHONY: deploy-prod
deploy-prod:
cd build && \
sudo vercel link --token=$(ZEIT_TOKEN) --yes --project=qcbrunch-prod && \
sudo vercel deploy --token=$(ZEIT_TOKEN) --yes --prod