From 8f9e6dca2ffbc11e975ecba3dc3898555249d12d Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 2 Dec 2020 02:27:11 +0100 Subject: [PATCH] feat: add kaniko build to the pipeline commit b790ccc27ab7977dba5964b85a5d4d5d1663ae23 Author: surtur Date: Wed Dec 2 01:47:02 2020 +0100 fix: missing literal 'branch/' in the URL path commit 7feab3483f0be7008165949c358fc52c6bc9f4a7 Author: surtur Date: Wed Dec 2 01:06:12 2020 +0100 fix: grab missing Dockerfile before build attempt * since path of the Dockerfile was not the issue, revert the change of https://git.dotya.ml/wanderer/docker-fedora-hugo/commit/5533ed0f6e78a689c6902fd9d60ff69b37818acc commit 5533ed0f6e78a689c6902fd9d60ff69b37818acc Author: surtur Date: Wed Dec 2 00:52:56 2020 +0100 fix: kaniko missing Dockerfile in path commit ec28ddb6486635662e3f323b03782c054a84342c Author: surtur Date: Wed Dec 2 00:49:17 2020 +0100 chore: build image with kaniko on push --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0780b9d..6a0a519 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,22 @@ steps: - curl -sO https://git.dotya.ml/wanderer/docker-fedora-hugo/raw/branch/master/curl.it - bash ./curl.it $ENDPOINT +- name: grab Dockerfile + pull: always + image: bash:latest + commands: + - apk add --no-cache curl + - curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/${DRONE_COMMIT_BRANCH}/Dockerfile + +- name: kaniko build + pull: always + image: banzaicloud/drone-kaniko + depends_on: + - "grab Dockerfile" + settings: + dockerfile: Dockerfile + context: . + --- kind: pipeline