From 965930c3b00d87e4f66cf0e34e6a2523df33fdc9 Mon Sep 17 00:00:00 2001
From: Pavel Vondruska <dexter.cz@gmail.com>
Date: Tue, 8 Jun 2021 14:19:17 +0200
Subject: [PATCH] pridani gitlab-ci pro build docker image pres kaniko
---
.gitlab-ci.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 .gitlab-ci.yml
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..459bd01
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,17 @@
+image: alpine:3.12
+
+variables:
+ DEST: ${CI_REGISTRY_IMAGE}:0.1
+
+build oidc:
+ stage: build
+ image:
+ name: gcr.io/kaniko-project/executor:debug
+ entrypoint: [""]
+ script:
+ - mkdir -p /kaniko/.docker
+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
+ - /kaniko/executor --context $CI_PROJECT_DIR/latest --dockerfile Dockerfile --destination $DEST --verbosity info
+
+# vim: ts=2 sw=2 ai et
+
--
GitLab