-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
18 lines (15 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
build:
docker build -t prisoner-content-hub-frontend . \
--build-arg BUILD_NUMBER="$(APP_VERSION)" \
--build-arg GIT_REF="$(GIT_REF)" \
--build-arg GIT_DATE="$(GIT_DATE)"
push:
@docker login -u="${QUAYIO_USERNAME}" -p="${QUAYIO_PASSWORD}" quay.io
docker tag prisoner-content-hub-frontend quay.io/hmpps/prisoner-content-hub-frontend:$(APP_VERSION)
docker tag prisoner-content-hub-frontend quay.io/hmpps/prisoner-content-hub-frontend:latest
docker push quay.io/hmpps/prisoner-content-hub-frontend:$(APP_VERSION)
docker push quay.io/hmpps/prisoner-content-hub-frontend:latest
push-preview:
@docker login -u="${QUAYIO_USERNAME}" -p="${QUAYIO_PASSWORD}" quay.io
docker tag prisoner-content-hub-frontend quay.io/hmpps/prisoner-content-hub-frontend:$(APP_VERSION)
docker push quay.io/hmpps/prisoner-content-hub-frontend:$(APP_VERSION)