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
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: kaniko-build
|
name: kaniko-build-publish
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: kaniko-build-publish
|
||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/drone-kaniko:linux-amd64
|
image: plugins/kaniko:1.4.4-linux-amd64-kaniko1.8.0
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
tags:
|
||||||
---
|
- linux-amd64
|
||||||
kind: pipeline
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
type: docker
|
registry: git.dotya.ml
|
||||||
name: dockerhub-build-trigger
|
repo: wanderer/alpine-rsync
|
||||||
|
username:
|
||||||
platform:
|
from_secret: username
|
||||||
os: linux
|
password:
|
||||||
arch: amd64
|
from_secret: token
|
||||||
|
when:
|
||||||
clone:
|
ref:
|
||||||
disable: true
|
- refs/heads/master
|
||||||
|
event:
|
||||||
steps:
|
exclude: [pull_request, tag]
|
||||||
- name: call webhook
|
include: [push, cron]
|
||||||
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
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -86,7 +74,7 @@ trigger:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- dockerhub-build-trigger
|
- kaniko-build-publish
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -131,4 +119,4 @@ trigger:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- dockerhub-build-trigger
|
- kaniko-build-publish
|
||||||
|
Loading…
Reference in New Issue
Block a user