mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-02-14 16:59:51 +00:00
34 lines
766 B
YAML
34 lines
766 B
YAML
build:
|
|
ttl-hooks:
|
|
context: ./hooks
|
|
dockerfile: ./hooks/Dockerfile.hooks
|
|
ttl-reaper:
|
|
context: ./hooks
|
|
dockerfile: ./hooks/Dockerfile.reap
|
|
|
|
deploy:
|
|
- cd kustomize/overlays/dev && kustomize edit set image ttl-hooks=${OKTETO_BUILD_TTL_HOOKS_IMAGE}
|
|
- cd kustomize/overlays/dev && kustomize edit set image ttl-reaper=${OKTETO_BUILD_TTL_REAPER_IMAGE}
|
|
|
|
- kubectl apply -k kustomize/overlays/dev
|
|
|
|
dev:
|
|
ttl-hooks:
|
|
command: make deps build && bash || bash
|
|
workdir: /src
|
|
sync:
|
|
- ./hooks:/src
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
ttl-reaper:
|
|
command: make deps build && bash || bash
|
|
workdir: /src
|
|
sync:
|
|
- ./hooks:/src
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|