mirror of
https://github.com/dcarrillo/docker-nginx.git
synced 2025-11-20 02:12:35 +00:00
Bump nginx to 1.29.3 and refactor the building/testing
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user