ci: push to git.dotya.ml registry
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6a5fbc4501
commit
b68f9a2a88
52
.drone.yml
52
.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
|
||||
|
Loading…
Reference in New Issue
Block a user