Skip to content

Commit 4d0ab03

Browse files
author
Leonid Makarov
committed
Fix make release
1 parent 2091ed8 commit 4d0ab03

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ dist: bionic
33
language: minimal
44

55
env:
6-
DOCKSAL_VERSION: develop
7-
# Setting these while testing locally may result in data loss, so only use in CI.
8-
PROJECT_INACTIVITY_TIMEOUT: 30s
9-
PROJECT_DANGLING_TIMEOUT: 60s
6+
global:
7+
- DOCKSAL_VERSION=develop
8+
# Setting these while testing locally may result in data loss, so only use in CI.
9+
- PROJECT_INACTIVITY_TIMEOUT=30s
10+
- PROJECT_DANGLING_TIMEOUT=60s
1011

1112
install:
1213
# Install Docksal to have a matching versions of Docker on the build host

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
DOCKER ?= docker
33

44
ifeq ($(VERSION),)
5-
VERSION = dev
6-
LATEST_VERSION = $(VERSION)
5+
VERSION = dev
6+
LATEST_VERSION = $(VERSION)
77
endif
88

9-
TAG ?= $(VERSION)
9+
BUILD_TAG ?= $(VERSION)
1010

1111
REPO = docksal/vhost-proxy
1212
NAME = docksal-vhost-proxy
@@ -36,15 +36,15 @@ ARGS = $(filter-out $@,$(MAKECMDGOALS))
3636
default: build
3737

3838
build:
39-
$(DOCKER) build -t $(REPO):$(TAG) .
39+
$(DOCKER) build -t $(REPO):$(BUILD_TAG) .
4040

4141
test:
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

4646
push:
47-
$(DOCKER) push $(REPO):$(TAG)
47+
$(DOCKER) push $(REPO):$(BUILD_TAG)
4848

4949
conf-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
@@ -93,7 +93,7 @@ clean:
9393
rm -f ~/.docksal/certs/example.com.*
9494

9595
release:
96-
@scripts/release.sh
96+
@scripts/docker-push.sh
9797

9898
# https://stackoverflow.com/a/6273809/1826109
9999
%:

0 commit comments

Comments
 (0)