From a12ce0a9e9acee464f4b2a3e520ae3fb2c90b001 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 11 Jul 2023 17:19:16 +0200 Subject: [PATCH] build: Test build with original kaniko container image --- .drone.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index db30b76..3d7ed60 100644 --- a/.drone.yml +++ b/.drone.yml @@ -59,19 +59,20 @@ steps: - name: Container image (docker.io) depends_on: - Semantic Release (Dry-run) - image: plugins/kaniko + image: gcr.io/kaniko-project/executor:debug pull: always - context: . commands: - | - /kaniko-executor - settings: - repo: index.docker.io/djpbessems/json-server - registry: https://index.docker.io/v1/ - tags: latest - username: + jq '.auths["bv11-cr01.bessems.eu"].auth="'"$(echo $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json + - | + /kaniko/executor \ + --dockerfile=Dockerfile \ + --context=dir://. \ + --destination=bv11-cr01.bessems.eu/library/json-server:latest + environment: + DOCKER_USERNAME: from_secret: docker_username - password: + DOCKER_PASSWORD: from_secret: docker_password - name: Helm chart (Gitea)