-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 763 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 763 Bytes
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
33
34
#!/usr/bin/env make
PROJECT := overcommit
VERSION := 0.59.1-2
# Declare all targets as phony targets
# https://www.gnu.org/software/make/manual/make.html#Phony-Targets
.PHONY: %
# By default, `make` without arguments runs the first target in the Makefile.
# Hence let's declare it explicitly.
_default: build
build:
docker build \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
--build-arg no_proxy=$(no_proxy) \
--pull \
--tag harmjanblok/$(PROJECT):$(VERSION) \
.
push:
git tag v$(VERSION)
git push origin master
git push --tags
shell: build
docker run -it --rm harmjanblok/$(PROJECT):$(VERSION) bash
test:
docker run \
--rm \
--volume $(shell pwd):/usr/src/app \
harmjanblok/$(PROJECT):$(VERSION)