-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 1.36 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
IMAGE_NAME:=gcr.io/example-gcp-project/mssng
IMAGE_VERSION:=dev
IMAGE_TAG=$(IMAGE_NAME):$(IMAGE_VERSION)
default:
@echo "No default job. Open Makefile for more info."
local-run:
bundle exec rails server -b 0.0.0.0
public-release-review:
@python script/make_os_release ../portal-service
@echo "If you are ok with the result, run 'make public-release'."
public-release:
python script/make_os_release --apply --reset ../portal-service
gcp-build:
date +%s > .manually-deployed-version
@echo "***** Trigger GCP build manually $$(cat .manually-deployed-version) *****"
gcloud builds submit \
--project=example-gcp-project \
--config=cloudbuild.yml \
--substitutions=BRANCH_NAME=master,SHORT_SHA=t$$(cat .manually-deployed-version)
docker-build: docker-build-portal docker-build-test-runner
docker-build-portal:
docker build -t $(IMAGE_TAG) .
docker-build-test-runner:
docker build -t $(IMAGE_TAG)-e2e -f e2e/Dockerfile .
docker-push:
docker push $(IMAGE_TAG)
docker-pull:
docker pull $(IMAGE_TAG)
docker-start:
docker-compose up -d mysql test-runner
docker-compose up --force-recreate -d portal
test-e2e:
cd e2e && cucumber -v features/navigation.feature
remote-test-e2e:
kubectl create job zero-test-runner-manual \
--from=cronjob/test-runner-cronjob-test-daily \
-n staging
python3 ci/cloudbuild/step-verify-e2e-tests/main.py -n staging zero-test-runner-manual