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