1
0

45 lines
954 B
YAML

---
kind: pipeline
type: kubernetes
name: build
trigger:
event: [ push ]
branch: [ master ]
steps:
- name: build
# See: https://plugins.drone.io/plugins/docker
image: plugins/docker
settings:
registry: https://gitea.internal.example.com
username: drone
password:
from_secret: gitea-internal-password
repo: gitea.internal.example.com/examples/docker
cache_from: gitea.internal.example.com/examples/docker:ci
tags:
- "ci"
---
kind: pipeline
type: kubernetes
name: publish
trigger:
event: [ promote ]
target: [ publish ]
steps:
- name: build-and-publish
# See: https://plugins.drone.io/plugins/docker
image: plugins/docker
settings:
registry: https://gitea.internal.example.com
username: drone
password:
from_secret: gitea-internal-password
repo: gitea.internal.example.com/examples/docker
cache_from: gitea.internal.example.com/examples/docker:ci
tags:
- "latest"