From b68f9a2a88f4eff0d6ee50ddd48a583d8b29a37b Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 1 Apr 2022 22:20:08 +0200 Subject: [PATCH] ci: push to git.dotya.ml registry --- .drone.yml | 52 ++++++++++++++++++++-------------------------------- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index 161990a..7f7b3b7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,46 +1,34 @@ --- kind: pipeline type: docker -name: kaniko-build +name: kaniko-build-publish platform: os: linux arch: amd64 steps: -- name: build +- name: kaniko-build-publish pull: always - image: immawanderer/drone-kaniko:linux-amd64 + image: plugins/kaniko:1.4.4-linux-amd64-kaniko1.8.0 settings: dockerfile: Dockerfile context: . - ---- -kind: pipeline -type: docker -name: dockerhub-build-trigger - -platform: - os: linux - arch: amd64 - -clone: - disable: true - -steps: -- name: call webhook - pull: always - image: bash:latest - environment: - ENDPOINT: - from_secret: dockerhub_endpoint - commands: - - apk add --no-cache curl - - curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/master/curl.it - - bash ./curl.it $ENDPOINT - -depends_on: -- kaniko-build + tags: + - linux-amd64 + - ${DRONE_COMMIT_SHA:0:8} + registry: git.dotya.ml + repo: wanderer/alpine-rsync + username: + from_secret: username + password: + from_secret: token + when: + ref: + - refs/heads/master + event: + exclude: [pull_request, tag] + include: [push, cron] --- kind: pipeline @@ -86,7 +74,7 @@ trigger: - failure depends_on: -- dockerhub-build-trigger +- kaniko-build-publish --- kind: pipeline @@ -131,4 +119,4 @@ trigger: - failure depends_on: -- dockerhub-build-trigger +- kaniko-build-publish