From bbb9a07ec615a6127efbda5170863686f2e52331 Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Mon, 2 May 2022 16:50:43 +0300 Subject: [PATCH] Added agola CI --- .agola/config.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .agola/config.yml diff --git a/.agola/config.yml b/.agola/config.yml new file mode 100644 index 0000000..890dce6 --- /dev/null +++ b/.agola/config.yml @@ -0,0 +1,43 @@ +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 + +