-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 847 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
# Variables. Yes.
DOCKER=docker
DOCKER_BUILDKIT=0
# The main build recipe.
build: clean
DOCKER_BUILDKIT=$(DOCKER_BUILDKIT) $(DOCKER) build \
--build-arg BRANCH_ENVIRONMENT=$(NODE_ENV) \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg VCS_URL=`git config --get remote.origin.url | sed 's#git@github.com:#https://github.com/#'` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg GITHUB_ACTOR=`whoami` \
--build-arg GITHUB_REPOSITORY=`git config --get remote.origin.url` \
--build-arg GITHUB_SHA=`git rev-parse --short HEAD` \
. --file docker/Dockerfile --rm --force-rm --tag unocha/hpc-content-site:local \
2>&1 | tee buildlog.txt
@echo "Built a shiny new unocha/hpc-content-site:local for you."
clean:
rm -rf ./buildlog.txt
# Always build, never claim cache.
.PHONY: build