22DOCKER ?= docker
33
44ifeq ($(VERSION ) ,)
5- VERSION = dev
6- LATEST_VERSION = $(VERSION )
5+ VERSION = dev
6+ LATEST_VERSION = $(VERSION)
77endif
88
9- TAG ?= $(VERSION )
9+ BUILD_TAG ?= $(VERSION )
1010
1111REPO = docksal/vhost-proxy
1212NAME = docksal-vhost-proxy
@@ -36,15 +36,15 @@ ARGS = $(filter-out $@,$(MAKECMDGOALS))
3636default : build
3737
3838build :
39- $(DOCKER ) build -t $(REPO ) :$(TAG ) .
39+ $(DOCKER ) build -t $(REPO ) :$(BUILD_TAG ) .
4040
4141test :
4242 # Create test projects before starting tests. This allows using "fin @project" aliases in tests.
4343 tests/create_test_projects.sh
44- IMAGE=$(REPO ) :$(TAG ) tests/test.bats
44+ IMAGE=$(REPO ) :$(BUILD_TAG ) tests/test.bats
4545
4646push :
47- $(DOCKER ) push $(REPO ) :$(TAG )
47+ $(DOCKER ) push $(REPO ) :$(BUILD_TAG )
4848
4949conf-vhosts :
5050 make exec -e CMD=' cat /etc/nginx/conf.d/vhosts.conf'
@@ -55,7 +55,7 @@ start: clean
5555 mkdir -p $(PROJECTS_ROOT )
5656 # Copy custom certs used in cert tets
5757 cp -R tests/certs ~ /.docksal
58- IMAGE_VHOST_PROXY=$(REPO ) :$(TAG ) fin system reset vhost-proxy
58+ IMAGE_VHOST_PROXY=$(REPO ) :$(BUILD_TAG ) fin system reset vhost-proxy
5959 # Give vhost-proxy a bit of time to initialize
6060 sleep ${DELAY}
6161 # Stop crond, so it does not interfere with tests
9393 rm -f ~ /.docksal/certs/example.com.*
9494
9595release :
96- @scripts/release .sh
96+ @scripts/docker-push .sh
9797
9898# https://stackoverflow.com/a/6273809/1826109
9999% :
0 commit comments