main:
push:
- stages:
- name: hello world
image: docker.cnb.cool/w3c/sumu/git-deploy:latest
settings:
text: hello world
boolean: true
number: 123
array: [hello, world]
map:
key: value
上传参数值将会转化为以下环境变量:
PLUGIN_BOOLEAN='true' PLUGIN_NUMBER='123' PLUGIN_ARRAY='hello,world' PLUGIN_MAP='{"key":"value"}'
docker build -t docker.cnb.cool/{repository-path}:latest . docker push docker.cnb.cool/{repository-path}:latest
docker build -t docker.cnb.cool/{repository-path}/{image-name}:latest . docker push docker.cnb.cool/{repository-path}/{image-name}:latest
docker run --rm -e PLUGIN_TEXT="hello world" docker.cnb.cool/w3c/sumu/git-deploy:latest