From b14db4d1286fe0f331d2a95c62dd17a5b219a077 Mon Sep 17 00:00:00 2001 From: Malte Grosse Date: Wed, 31 Jan 2024 11:29:58 +0100 Subject: [PATCH] added kaniko --- .woodpecker copy.yml | 19 +++++++++++++++++++ .woodpecker.yml | 23 +++++++++-------------- config.json | 1 + 3 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 .woodpecker copy.yml create mode 100644 config.json diff --git a/.woodpecker copy.yml b/.woodpecker copy.yml new file mode 100644 index 0000000..0fbcdce --- /dev/null +++ b/.woodpecker copy.yml @@ -0,0 +1,19 @@ +steps: + publish-container: + image: quay.io/thegeeklab/wp-docker-buildx:3.0.0 + secrets: [ docker_username, docker_password ] + privileged: true + group: docker + settings: + registry: https://git.sandbox.iuk.hdm-stuttgart.de + repo: git.sandbox.iuk.hdm-stuttgart.de/grosse/jupyterhub + dockerfile: Dockerfile + tags: 2.0.0 + username: $DOCKER_USERNAME + password: $DOCKER_PASSWORD + backend_options: + kubernetes: + securityContext: + runAsUser: 999 + runAsGroup: 999 + privileged: true diff --git a/.woodpecker.yml b/.woodpecker.yml index 0fbcdce..3a70a44 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,19 +1,14 @@ steps: - publish-container: - image: quay.io/thegeeklab/wp-docker-buildx:3.0.0 - secrets: [ docker_username, docker_password ] - privileged: true - group: docker + build_and_release: + image: gitea.mdg-hamburg.de/ci-tools/plugin-kaniko:debug + pull: true settings: registry: https://git.sandbox.iuk.hdm-stuttgart.de repo: git.sandbox.iuk.hdm-stuttgart.de/grosse/jupyterhub - dockerfile: Dockerfile tags: 2.0.0 - username: $DOCKER_USERNAME - password: $DOCKER_PASSWORD - backend_options: - kubernetes: - securityContext: - runAsUser: 999 - runAsGroup: 999 - privileged: true + cache: true + dockerfile: Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/config.json b/config.json new file mode 100644 index 0000000..4f5220d --- /dev/null +++ b/config.json @@ -0,0 +1 @@ +{"auths":{"":{"auth":"Og=="}}}