-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 840 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
ifneq (,$(wildcard .env))
ENV_FILE := .env
else ifneq (,$(wildcard .env.example))
ENV_FILE := .env.example
else
$(error "Neither .env nor .env.example file exists!")
endif
include $(ENV_FILE)
export $(shell sed 's/=.*//' $(ENV_FILE))
build:
docker build \
--tag ${ORG_NAME}/${APP_SLUG}:${APP_VERSION} \
--tag ${ORG_NAME}/${APP_SLUG}:latest \
--build-arg APP_NAME=${APP_NAME} \
--build-arg APP_SLUG=${APP_SLUG} \
--build-arg APP_VERSION=${APP_VERSION} \
--target deploy \
.
push:
docker push ${ORG_NAME}/${APP_SLUG}:${APP_VERSION}
push-latest:
docker push ${ORG_NAME}/${APP_SLUG}:latest
push-all: push push-latest
up:
docker compose up -d
shell:
docker compose exec --user=1001 tileserver-gl-styles bash
shell-root:
docker compose exec --user=root tileserver-gl-styles bash
down:
docker compose down