ci-images/.agola/config.yml
Peter Kurfer 401ce7c4c3
All checks were successful
agola/ci-images/Build The run finished successfully
chore: migrate CI images from GitLab
2022-09-29 21:06:16 +02:00

80 lines
No EOL
2.5 KiB
YAML

version: v0
runs:
- name: Build
tasks:
- name: Checkout code
runtime:
type: pod
containers:
- image: docker.io/alpine/git
steps:
- clone:
recurse_submodules: true
- save_to_workspace:
contents:
- source_dir: .
dest_dir: .
paths:
- '**'
- name: Build Go CI image
runtime:
containers:
- image: gcr.io/kaniko-project/executor:debug
environment:
DOCKERAUTH:
from_variable: dockerauth
shell: /busybox/sh
steps:
- restore_workspace:
dest_dir: .
- run:
name: generate docker config
command: |
cat << EOF > /kaniko/.docker/config.json
{
"auths": {
"https://code.icb4dc0.de": { "auth" : "$DOCKERAUTH" }
}
}
EOF
- run:
name: Build and push image
command: |
/kaniko/executor \
--destination code.icb4dc0.de/inetmock/ci-images/go-ci:latest \
--context dir:///root/project/ \
--dockerfile /root/project/go-ci/Dockerfile
depends:
- Checkout code
- name: Build mdbook image
runtime:
containers:
- image: gcr.io/kaniko-project/executor:debug
environment:
DOCKERAUTH:
from_variable: dockerauth
shell: /busybox/sh
steps:
- restore_workspace:
dest_dir: .
- run:
name: generate docker config
command: |
cat << EOF > /kaniko/.docker/config.json
{
"auths": {
"https://code.icb4dc0.de": { "auth" : "$DOCKERAUTH" }
}
}
EOF
- run:
name: Build and push image
command: |
/kaniko/executor \
--destination code.icb4dc0.de/inetmock/ci-images/mdbook:latest \
--context dir:///root/project/ \
--dockerfile /root/project/mdbook/Dockerfile
depends:
- Checkout code