The `oci-build-task` seems to be doing more requests to the registry than local `docker build`, which frequently results in Docker Hub's rate limits kicking in. By proxying `docker.io`, this should hopefully be avoided. A somewhat elaborate setup and a custom build of `oci-build-task` are needed: https://github.com/concourse/oci-build-task/pull/121. Fixes: #39.
29 lines
550 B
YAML
29 lines
550 B
YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/cappyzawa/concourse-pipeline-jsonschema/master/concourse_jsonschema.json#/definitions/TaskConfig
|
|
---
|
|
platform: linux
|
|
|
|
image_resource:
|
|
name: image
|
|
type: registry-image
|
|
source:
|
|
repository: ((registry_url))/oci-build-task
|
|
tag: latest
|
|
|
|
inputs:
|
|
- name: repo
|
|
|
|
outputs:
|
|
- name: image
|
|
|
|
caches:
|
|
- path: cache
|
|
- path: /var/cache
|
|
|
|
params:
|
|
CONTEXT: ((context))
|
|
DOCKERFILE: ((dockerfile))
|
|
TARGET: ((target))
|
|
BUILDKIT_EXTRA_CONFIG: ((buildkit_config))
|
|
|
|
run:
|
|
path: build
|