Skip to content

Commit 5132414

Browse files
committed
Add Makefile
1 parent 5f8c888 commit 5132414

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
init:
3+
git remote add upstream https://github.com/nginxinc/docker-nginx.git
4+
5+
update:
6+
git fetch upstream
7+
git checkout master
8+
git merge upstream/master
9+
10+
build:
11+
echo $(PW)| docker login -u 8ear --password-stdin
12+
docker build -f mainline/alpine/Dockerfile \
13+
-t 8ear/nginx:$(shell grep "ENV NGINX_VERSION" ./mainline/alpine/Dockerfile|cut -d ' ' -f 3)-alpine \
14+
-t 8ear/nginx:latest-alpine \
15+
-t 8ear/nginx:latest \
16+
./mainline/alpine/
17+
docker push 8ear/nginx:$(shell grep "ENV NGINX_VERSION" ./mainline/alpine/Dockerfile|cut -d ' ' -f 3)-alpine
18+
docker push 8ear/nginx:latest-alpine
19+
docker push 8ear/nginx:latest

0 commit comments

Comments
 (0)