我试图用所需的图像更新管道。当我在第一份工作中使用此配置时:
- name: deploy
plan:
- aggregate:
- get: go-time
trigger: true
- get: github-repo
- task: deploy-<product>
image_resource: &cli
type: docker-image
source:
repository: <repo>/<image>
tag: latest
config:
platform: linux
inputs:
- name: github-repo
outputs:
- name: current-deployment-id
path: deployment_meta
run:
path: github-repo/ci/scripts/deploy.sh
args:
- ...
- ...我知道这个错误:
unknown/extra keys:
- jobs[0].plan[1].image_resource是什么导致了这个错误?
发布于 2017-09-13 22:32:44
image_resource键只存在于任务配置中,因此您的任务可能应该如下所示:
- name: deploy
plan:
- aggregate:
- get: go-time
trigger: true
- get: github-repo
- task: deploy-<product>
config:
platform: linux
image_resource:
type: docker-image
source:
repository: <repo>/<image>
tag: latest
inputs:
- name: github-repo
outputs:
- name: current-deployment-id
path: deployment_meta
run:
path: github-repo/ci/scripts/deploy.sh
args:
- ...
- ...我不知道您所拥有的&cli应该指什么,但您不应该需要它。您应该拥有的只是这里定义的内容:resource。
https://stackoverflow.com/questions/46204452
复制相似问题