2020-05-24 18:42:01 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-12-04 21:05:10 +01:00
|
|
|
name: cleanup-before
|
2020-05-24 18:42:01 +02:00
|
|
|
|
|
|
|
steps:
|
2020-12-04 21:05:10 +01:00
|
|
|
- name: clean
|
|
|
|
image: alpine
|
2020-05-24 18:42:01 +02:00
|
|
|
commands:
|
2020-12-04 21:05:10 +01:00
|
|
|
- rm -rf /build/*
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
host:
|
|
|
|
path: /tmp/dip/build
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default-linux-amd64
|
|
|
|
|
|
|
|
steps:
|
2020-05-24 18:42:01 +02:00
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- ./ci-build.sh build
|
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
2020-12-04 21:05:10 +01:00
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
host:
|
|
|
|
path: /tmp/dip/build
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- cleanup-before
|
2020-05-24 18:42:01 +02:00
|
|
|
|
2020-12-04 21:05:10 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: gitea-release
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: move
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- mv build/* ./
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /drone/src/build
|
|
|
|
when:
|
|
|
|
event: tag
|
2020-05-24 18:42:01 +02:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.paulbsd.com
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files: "*.tar.gz"
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
2020-12-04 21:05:10 +01:00
|
|
|
title: VERSION
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /drone/src/build
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- name: ls
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- find .
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /drone/src/build
|
2020-05-24 18:42:01 +02:00
|
|
|
when:
|
2020-08-01 18:46:40 +02:00
|
|
|
event: tag
|
2020-12-04 21:05:10 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
host:
|
|
|
|
path: /tmp/dip/build
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- default-linux-amd64
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: cleanup-after
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: clean
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- rm -rf /build/*
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
host:
|
|
|
|
path: /tmp/dip/build
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- gitea-release
|