22 lines
581 B
YAML
22 lines
581 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: publish-{{ .input.os }}-{{ .input.arch }}
|
|
|
|
trigger:
|
|
event: [ promote ]
|
|
target: [ "publish-{{ .input.os }}-{{ .input.arch }}" ]
|
|
|
|
steps:
|
|
- name: build-and-publish
|
|
image: plugins/docker
|
|
settings:
|
|
registry: https://gitea.internal.example.com
|
|
username: drone
|
|
password:
|
|
from_secret: gitea-internal-password
|
|
repo: gitea.internal.example.com/{{ .input.repo }}-{{ .input.os }}-{{ .input.arch }}
|
|
cache_from: gitea.internal.example.com/{{ .input.repo }}-{{ .input.os }}-{{ .input.arch }}:ci
|
|
tags:
|
|
- "latest"
|