1
0
mirror of https://github.com/dcarrillo/docker-nginx.git synced 2025-11-19 22:42:36 +00:00
Files
docker-nginx/Makefile

17 lines
389 B
Makefile

include conf.env
build:
docker build --build-arg=ARG_NGINX_VERSION="$(NGINX_VERSION)" \
-t "$(DOCKER_IMAGE):$(NGINX_VERSION)" .
build-latest: build
docker tag "$(DOCKER_IMAGE):$(NGINX_VERSION)" "$(DOCKER_IMAGE):latest"
push-latest: build-latest
docker push "$(DOCKER_IMAGE):$(NGINX_VERSION)"
docker push "$(DOCKER_IMAGE):latest"
.PHONY: tests
tests:
./tests/test.sh