-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (18 loc) · 799 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
PROJECT_ID=fluent-cosine-206514
RELEASE_DOCKER_IMG = gcr.io/${PROJECT_ID}/coolops-app:${VERSION}
BUILD_DOCKER_IMG = coolops-app-build:latest
build_base:
docker build -t coolopsio/app-buildbase:latest -f Dockerfile.buildbase .
docker push coolopsio/app-buildbase:latest
auth_container_registry:
echo ${GCLOUD_KEY_JSON} | base64 -d > ${HOME}/gcloud-service-key.json
docker login -u _json_key --password-stdin https://gcr.io < ${HOME}/gcloud-service-key.json
build:
elm-app build
release:
docker build -t ${RELEASE_DOCKER_IMG} -f Dockerfile.release .
push: auth_container_registry
docker push ${RELEASE_DOCKER_IMG}
notify_coolops:
curl -L https://github.com/coolopsio/coolops/releases/download/v0.1.0/install.sh | sudo sh
coolops build:new:circleci -p DOCKER_IMAGE=${RELEASE_DOCKER_IMG}