build-ci-image.yml 579 B

123456789101112131415161718192021222324252627
  1. ---
  2. platform: linux
  3. image_resource:
  4. type: registry-image
  5. source:
  6. repository: vito/oci-build-task
  7. inputs:
  8. - name: ci-images-git-repo
  9. outputs:
  10. - name: image
  11. caches:
  12. - path: ci-image-cache
  13. params:
  14. DEBUG: true
  15. CONTEXT: ci-images-git-repo/ci/images
  16. DOCKERFILE: ci-images-git-repo/ci/images/((ci-image-name))/Dockerfile
  17. DOCKER_HUB_AUTH: ((docker-hub-auth))
  18. run:
  19. path: /bin/sh
  20. args:
  21. - "-c"
  22. - |
  23. mkdir -p /root/.docker
  24. cat > /root/.docker/config.json <<EOF
  25. { "auths": { "https://index.docker.io/v1/": { "auth": "$DOCKER_HUB_AUTH" }}}
  26. EOF
  27. build