-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 774 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
# -- Deprecated
ACTION_SERVICE=action
TESTING_CMD=local/test.sh
# --
start:
@docker compose up -d
start-f:
@docker compose up -d --force-recreate
start-b:
@docker compose up -d --build
stop:
@docker compose stop
down:
@docker compose down
# -- Deprecated
check-running:
@docker compose ps --services | grep $(ACTION_SERVICE) > /dev/null || $(MAKE) start
exec: check-running
@docker compose exec -it $(ACTION_SERVICE) sh
test: check-running
@docker compose exec -it $(ACTION_SERVICE) $(TESTING_CMD)
dev: start-f exec
# --
tests-build:
@docker build -f ./tests/host/Dockerfile -t docker_throw_ssh .
tests-deploy: tests-build
@docker tag docker_throw_ssh ghcr.io/tristiisch/docker_throw_ssh:latest
@docker push ghcr.io/tristiisch/docker_throw_ssh:latest