pki/.drone.yml

145 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2020-11-29 13:34:51 +01:00
---
kind: pipeline
type: docker
name: cleanup-before
steps:
- name: clean
image: alpine
commands:
- rm -rf /build/*
volumes:
- name: build
path: /build
when:
event: tag
volumes:
- name: build
host:
path: /tmp/pki/build
2020-11-25 20:36:07 +01:00
---
kind: pipeline
type: docker
name: default-linux-amd64
steps:
- name: build
image: golang
commands:
- ./ci-build.sh build
environment:
GOOS: linux
GOARCH: amd64
2020-11-29 13:34:51 +01:00
volumes:
- name: build
path: /build
volumes:
- name: build
host:
path: /tmp/pki/build
depends_on:
- cleanup-before
---
kind: pipeline
type: docker
name: default-linux-arm64
steps:
- name: build
image: golang
commands:
- ./ci-build.sh build
environment:
GOOS: linux
GOARCH: arm64
volumes:
- name: build
path: /build
volumes:
- name: build
host:
path: /tmp/pki/build
depends_on:
- cleanup-before
2020-11-25 20:36:07 +01:00
---
kind: pipeline
type: docker
name: gitea-release
steps:
2020-11-29 13:34:51 +01:00
- name: move
image: alpine
commands:
- mv build/* ./
volumes:
- name: build
path: /drone/src/build
when:
event: tag
2020-11-25 20:36:07 +01: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-11-29 13:34:51 +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
when:
event: tag
volumes:
- name: build
host:
path: /tmp/pki/build
depends_on:
- default-linux-amd64
- default-linux-arm64
---
kind: pipeline
type: docker
name: cleanup-after
steps:
- name: clean
image: alpine
commands:
- rm -rf /build/*
volumes:
- name: build
path: /build
2020-11-25 20:36:07 +01:00
when:
event: tag
2020-11-29 13:34:51 +01:00
volumes:
- name: build
host:
path: /tmp/pki/build
2020-11-25 20:36:07 +01:00
depends_on:
2020-11-29 13:34:51 +01:00
- gitea-release