cli
cli copied to clipboard
feat(exec): report missing secrets
this feature will print out any secrets not provided as a warning at the end of a vela exec pipeline
.
for example, vela exec pipeline
for the following pipeline:
version: "1"
stages:
build:
steps:
- name: "build"
image: alpine:latest
secrets: [docker_username]
commands:
- echo "Hello World"
secrets:
- name: docker_username
key: org/repo/docker_username
engine: native
type: repo
will result in:
use vela exec pipeline --env DOCKER_USERNAME=shh
(for example) and the warnings go away.
to note, the env var has to just exist to count as being supplied, even if its value is an empty string. however, in that scenario it will print a message when using --log.level debug
.
also added tests for this feature and a previously added skip steps feature.