2020-12-11 03:57:49 +08:00
|
|
|
---
|
|
|
|
platform: linux
|
|
|
|
image_resource:
|
|
|
|
type: registry-image
|
|
|
|
source:
|
2021-07-26 21:19:05 +08:00
|
|
|
repository: concourse/oci-build-task
|
2022-05-12 20:22:48 +08:00
|
|
|
tag: 0.10.0
|
2023-02-03 08:04:34 +08:00
|
|
|
username: ((docker-hub-username))
|
|
|
|
password: ((docker-hub-password))
|
2020-12-11 03:57:49 +08:00
|
|
|
inputs:
|
|
|
|
- name: ci-images-git-repo
|
|
|
|
outputs:
|
2020-12-11 08:20:37 +08:00
|
|
|
- name: image
|
2020-12-11 03:57:49 +08:00
|
|
|
caches:
|
|
|
|
- path: ci-image-cache
|
|
|
|
params:
|
|
|
|
CONTEXT: ci-images-git-repo/ci/images
|
2020-12-11 06:35:04 +08:00
|
|
|
DOCKERFILE: ci-images-git-repo/ci/images/((ci-image-name))/Dockerfile
|
2020-12-11 13:00:58 +08:00
|
|
|
DOCKER_HUB_AUTH: ((docker-hub-auth))
|
2021-11-20 02:32:33 +08:00
|
|
|
REGISTRY_MIRRORS: ((docker-hub-mirror))
|
2020-12-11 03:57:49 +08:00
|
|
|
run:
|
2020-12-11 13:00:58 +08:00
|
|
|
path: /bin/sh
|
|
|
|
args:
|
|
|
|
- "-c"
|
|
|
|
- |
|
|
|
|
mkdir -p /root/.docker
|
|
|
|
cat > /root/.docker/config.json <<EOF
|
|
|
|
{ "auths": { "https://index.docker.io/v1/": { "auth": "$DOCKER_HUB_AUTH" }}}
|
|
|
|
EOF
|
|
|
|
build
|