mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-17 22:43:36 +02:00
Build without cgo
This commit is contained in:
7
Makefile
7
Makefile
@ -39,5 +39,10 @@ docker-build:
|
||||
docker-login:
|
||||
@echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
|
||||
|
||||
docker-push: docker-login
|
||||
docker-test:
|
||||
$(eval CONTAINER=$(shell docker run --rm --detach --publish-all $(DOCKER_IMAGE)))
|
||||
$(eval DOCKER_PORT=$(shell docker port $(CONTAINER) | cut -d ":" -f 2))
|
||||
curl -qfsS -m 5 localhost:$(DOCKER_PORT) > /dev/null; docker stop $(CONTAINER)
|
||||
|
||||
docker-push: docker-test docker-login
|
||||
docker push $(DOCKER_IMAGE)
|
||||
|
Reference in New Issue
Block a user