ddnsclient/Makefile

17 lines
657 B
Makefile
Raw Normal View History

2021-05-17 19:11:01 +02:00
BINARY_FOLDER = bin/ddnsclient
2021-03-15 19:11:52 +01:00
build:
2021-05-17 19:11:01 +02:00
@command -v go >/dev/null || (echo 'go CLI is required to build ddnsclient'; exit 1)
@echo "Create ddnsclient binary"
go build -o $(BINARY_FOLDER) cmd/main.go
@echo "Binary created in $(BINARY_FOLDER)"
2021-03-15 19:11:52 +01:00
2021-05-17 19:11:01 +02:00
create-docker-image:
@command -v docker >/dev/null || (echo 'docker is required to create docker image'; exit 1)
@read -p "Docker release: " release; \
docker build --tag datahearth/ddnsclient:$$release .
push-docker-image:
@command -v docker >/dev/null || (echo 'docker is required to create docker image'; exit 1)
@read -p "Docker image tag: " tag; \
docker push datahearth/ddnsclient:$$tag .