2024-11-21 20:36:02 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2024-11-21 20:59:56 +00:00
|
|
|
name: build
|
2024-11-21 20:36:02 +00:00
|
|
|
|
|
|
|
steps:
|
2024-11-21 20:59:56 +00:00
|
|
|
- name: 'docker_build'
|
2024-11-21 20:36:02 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dry_run: true
|
|
|
|
purge: true
|
2024-11-21 20:59:56 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
2024-11-21 20:36:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2024-11-21 20:59:56 +00:00
|
|
|
name: publish
|
2024-11-21 20:36:02 +00:00
|
|
|
|
|
|
|
steps:
|
2024-11-21 20:59:56 +00:00
|
|
|
- name: 'docker_publish'
|
2024-11-21 20:36:02 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKER_LOGIN
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
repo:
|
|
|
|
from_secret: DOCKER_REPO
|
|
|
|
tags:
|
|
|
|
- ${DRONE_TAG}
|
|
|
|
- latest
|
2024-11-21 20:59:56 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|