Where should I set the skaffold.env to load my parameter to the skaffold.yaml? #9567
Open
Description
Expected behavior
skaffold.yaml can read the env variable WORKSPACE
and worked as expexted.
Actual behavior
Error:parsing skaffold config: error parsing skaffold configuration file: parsing api version: yaml: line 13: did not find expected key
Information
- Skaffold version: v2.13.2
- Operating system: jenkins
I built like this
-ope/skaffold
|_myservice
|_skaffold.yaml
|_skaffold.env
- Contents of skaffold.yaml:
# Deprecated
apiVersion: skaffold/v2beta26
kind: Config
metadata:
name: myservice
build:
tagPolicy:
gitCommit: {}
local:
push: true
useDockerCLI: true
artifacts:
- image: dataservice
context: '{{.WORKSPACE}}'/dist/
docker:
dockerfile: ../ope/docker/myservice/Dockerfile
deploy: ......
- Contents of skaffold.env:
WORKSPACE=/var/lib/jenkins/workspace/my_target_value
I saw the page here, https://skaffold.dev/docs/environment/env-file/, but seems it didn't work.
Metadata
Assignees
Labels
No labels