forked from nginx-proxy/nginx-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 856 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.SILENT :
.PHONY : test-debian test-alpine test
REGISTRY = docker.io
# DOCKER_PWD is set in travis-ci
# DOCKER_USER is set in travis-ci
update-dependencies:
test/requirements/build.sh
test-debian: update-dependencies
docker build --no-cache -t aptrust/nginx-proxy:test .
test/pytest.sh
test-alpine: update-dependencies
docker build --no-cache -f Dockerfile.alpine -t aptrust/nginx-proxy:test .
test/pytest.sh
test: test-debian test-alpine
build:
docker build --no-cache -f Dockerfile.alpine -t aptrust/nginx-proxy .
release:
docker login
docker build --no-cache -f Dockerfile.alpine -t aptrust/nginx-proxy .
docker push aptrust/nginx-proxy
release-ci:
@echo ${DOCKER_PWD} | docker login -u ${DOCKER_USER} --password-stdin $(REGISTRY)
docker build --no-cache -f Dockerfile.alpine -t aptrust/nginx-proxy .
docker push aptrust/nginx-proxy