Files
2025-03-10 23:47:21 +00:00

31 lines
917 B
YAML

# This pod specification is intended to be used within the Jenkinsfile for
# building the Docker containers
#
# E.g. /kaniko/executor --context `pwd` --destination localhost:5000/roboto:latest --insecure-registry localhost:5000 --cleanup
---
kind: Pod
metadata:
name: kaniko
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug
imagePullPolicy: Always
# Command and args are important to set in this manner such that the
# Jenkins Pipeline can send commands to be executed from the Jenkinsfile via
# stdin (that's how it really works!)
command:
- /busybox/sh
- "-c"
args:
- /busybox/cat
tty: true
# Kaniko requires a registry, so we're just bringing one online in the pod
# for the intermediate caching of layers
- name: registry
image: 'registry'
command:
- /bin/registry
- serve
- /etc/docker/registry/config.yml