39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
|
version: v0
|
||
|
runs:
|
||
|
- name: Build
|
||
|
tasks:
|
||
|
- name: checkout code
|
||
|
runtime:
|
||
|
type: pod
|
||
|
containers:
|
||
|
- image: docker.io/alpine/git
|
||
|
steps:
|
||
|
- clone:
|
||
|
- save_to_workspace:
|
||
|
contents:
|
||
|
- source_dir: .
|
||
|
dest_dir: .
|
||
|
paths:
|
||
|
- '**'
|
||
|
- name: build docker image
|
||
|
runtime:
|
||
|
containers:
|
||
|
- image: gcr.io/kaniko-project/executor:debug
|
||
|
shell: /busybox/sh
|
||
|
steps:
|
||
|
- restore_workspace:
|
||
|
dest_dir: .
|
||
|
- run:
|
||
|
name: generate docker config
|
||
|
command: |
|
||
|
cat << EOF > /kaniko/.docker/config.json
|
||
|
{
|
||
|
"auths": {
|
||
|
"code.icb4dc0.de": { "auth" : "$DOCKERAUTH" }
|
||
|
}
|
||
|
}
|
||
|
EOF
|
||
|
- run: /kaniko/executor --destination code.icb4dc0.de/prskr/blog:latest
|
||
|
depends:
|
||
|
- checkout code
|