下面是我的管道
---
resource_types:
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: pull-request
type: pull-request
check_every: 5m
# webhook_token: ((webhook-token))
source:
repository: engx/engx-intuitive
base_branch: concourse
access_token: ((github-access-token))
v3_endpoint: https://github.com/api/v3
v4_endpoint: https://github.com/api/graphql
jobs:
- name: intuitive
plan:
- get: pull-request
trigger: true
version: every
- put: pull-request
params:
path: pull-request
status: pending
- task: build engx-intuitive
params:
GOPROXY: "https://proxy.golang.org"
CGO_ENABLED: "0"
config:
platform: linux
image_resource:
type: registry-image
source:
repository: docker
tag: latest
volumes: /var/run/docker.sock:/var/run/docker.sock
inputs:
如果我使用它会失败并出现以下错误volumes
resource script '/opt/resource/check []' failed: exit status 1
stderr:
[31mERRO[0m[0000] invalid payload: json: unknown field "volumes"
如果没有,则会看到以下故障
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?