forked from expo/snack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
54 lines (54 loc) · 1.08 KB
/
skaffold.yaml
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
52
53
54
apiVersion: skaffold/v2beta1
kind: Config
metadata:
name: snackager
build:
artifacts:
- image: us-central1-docker.pkg.dev/exponentjs/snack/snackager
sync:
manual:
- src: src/**/*.js
dest: /app
docker:
dockerfile: snackager/Dockerfile
buildArgs:
node_version: 18.17.1
APP_VERSION: v{{.GITHUB_SHA}}
tagPolicy:
sha256: {}
local:
push: false
deploy:
kustomize:
paths:
- snackager/k8s/staging
profiles:
- name: prod
deploy:
kustomize:
paths:
- snackager/k8s/production
activation:
- env: ENVIRONMENT=production
- name: main
build:
local:
push: true
activation:
- env: SKAFFOLD_PUSH_IMAGE=true
- name: development
deploy:
kustomize:
paths:
- snackager/k8s/development
kubeContext: minikube
activation:
- command: dev
- command: debug
- name: dev
patches:
- op: add
path: /build/artifacts/0/docker/target
value: dev
activation:
- command: dev