mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-02-14 18:29:52 +00:00
34 lines
797 B
YAML
34 lines
797 B
YAML
apiVersion: skaffold/v1alpha2
|
|
kind: Config
|
|
|
|
## Default profile for use with `skaffold dev`
|
|
build:
|
|
artifacts:
|
|
- imageName: podinfo
|
|
docker:
|
|
dockerfilePath: ./Dockerfile.ci
|
|
deploy:
|
|
kubectl: { manifests: [ deploy/skaffold/dev/* ] }
|
|
|
|
profiles:
|
|
|
|
- name: test
|
|
## This profile runs unit tests and builds the image
|
|
build:
|
|
local: { skipPush: true }
|
|
artifacts:
|
|
- imageName: stefanprodan/podinfo
|
|
docker:
|
|
dockerfilePath: ./Dockerfile.ci
|
|
deploy: {} # not needed here as such
|
|
|
|
- name: production
|
|
## This profile pushes the image
|
|
build:
|
|
local: { skipPush: false }
|
|
artifacts:
|
|
- imageName: stefanprodan/podinfo
|
|
docker:
|
|
dockerfilePath: ./Dockerfile.ci
|
|
deploy: {} # no-op, flux will take care of this
|