-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (20 loc) · 780 Bytes
/
Makefile
File metadata and controls
23 lines (20 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Variables. Yes.
DOCKER=docker
IMAGE_NAME=starterkit-site
IMAGE_TAG=local
# The main build recipe.
build: clean
$(DOCKER) buildx 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 --tag public.ecr.aws/unocha/$(IMAGE_NAME):$(IMAGE_TAG) \
2>&1 | tee buildlog.txt
clean:
rm -rf ./buildlog.txt
# Always build, never claim cache.
.PHONY: build