-
Notifications
You must be signed in to change notification settings - Fork 32
/
myke.yml
28 lines (28 loc) · 1.04 KB
/
myke.yml
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
project: dino-park-front-end
desc: The new front-end for DinoPark.
env:
docker_registry: 320464205386.dkr.ecr.us-west-2.amazonaws.com
name: dino-park-front-end
rev: latest
default_base: /
tasks:
run-local:
cmd: npm run serve
run-local-online:
cmd: |-
export DP_K8S=1
npm run serve
install-local:
cmd: npm install
docker:
cmd: docker build --build-arg baseurl={{ .baseurl | default .default_base }} -t {{ .docker_registry }}/{{ .name }}:{{ .rev }} -f Dockerfile .
push-image:
cmd: docker push {{ .docker_registry }}/{{ .name }}:{{ .rev }}
deploy:
cmd: |
helm template -f k8s/values.yaml -f k8s/values/{{ .deploy_env | required }}.yaml \
--set docker_registry={{ .docker_registry }},rev={{ .rev }} k8s/ | kubectl apply -f -
deploy-preview:
cmd: |
helm template -f k8s/values.yaml -f k8s/values/{{ .deploy_env | required }}.yaml -f k8s/values/{{ .deploy_env | required }}-preview.yaml \
--set docker_registry={{ .docker_registry }},rev={{ .rev }} k8s/ | kubectl apply -f -