Template
1
0
dummy/Makefile
Azer Abdullaev d953c458a5 Bleh
2021-02-03 19:02:42 +01:00

16 lines
347 B
Makefile

all: build deploy
build: Makefile
podman build -t dummy:latest .
deploy:
docker service rm dummy || true
install -D -m 644 config/systemd/dummy.service /etc/systemd/system
systemctl daemon-reload
systemctl stop dummy.service
podman run --name dummy -d dummy:latest
systemctl enable dummy.service
update:
systemctl restart dummy.service