docker-dind.buildx-git/.agola/config.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-02 13:50:43 +00:00
version: v0
runs:
- name: Build image
docker_registries_auth:
'mxfox.ru':
username:
from_variable: mxfoxDockerLogin
password:
from_variable: mxfoxDockerSecret
tasks:
# kaniko image doesn't have the git command installed
- name: checkout code
runtime:
containers:
- image: 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
environment:
DOCKERLOGIN:
from_variable: mxfoxDockerLogin
DOCKERPASS:
from_variable: mxfoxDockerSecret
steps:
- restore_workspace:
dest_dir: .
#- run: /kaniko/executor --no-push
- run: /kaniko/executor --destination mxfox.ru/mxfox/docker-dind.buildx:latest
depends:
- checkout code