Add Makefile to push mrva agent container image
This commit is contained in:
committed by
=Michael Hohn
parent
19330c3a0f
commit
41f6db5de0
21
cmd/agent/Makefile
Normal file
21
cmd/agent/Makefile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
all: mrva-agent
|
||||||
|
|
||||||
|
MAI_TARGET := mrva-agent:0.1.24
|
||||||
|
mai: mrva-agent
|
||||||
|
mrva-agent:
|
||||||
|
cd ../../ && docker build -t mrva-agent:0.1.24 -f cmd/agent/Dockerfile .
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
mai-serve: mai
|
||||||
|
docker run --rm -it ${MAI_TARGET} /bin/bash
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-docker rmi -f ${MAI_TARGET}
|
||||||
|
-rm mrva-agent
|
||||||
|
|
||||||
|
mai-push: mai
|
||||||
|
docker tag ${MAI_TARGET} ghcr.io/hohn/${MAI_TARGET}
|
||||||
|
docker push ghcr.io/hohn/${MAI_TARGET}
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user