Alexey Skobkin
1c0c7af3f9
Migrating from Gitlab and Gitlab CI to Forgejo and Drone. Co-authored-by: Alexey Skobkin <skobkin-ru@ya.ru> Reviewed-on: #1
36 lines
562 B
YAML
36 lines
562 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build-pr
|
|
|
|
steps:
|
|
- name: build
|
|
image: plugins/docker
|
|
settings:
|
|
dry_run: true
|
|
purge: true
|
|
when:
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build-and-publish
|
|
|
|
steps:
|
|
- name: publish
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: DOCKER_LOGIN
|
|
password:
|
|
from_secret: DOCKER_TOKEN
|
|
repo:
|
|
from_secret: DOCKER_REPO
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
when:
|
|
event:
|
|
- tag |