-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.drone.yml
More file actions
88 lines (81 loc) · 1.86 KB
/
Copy path.drone.yml
File metadata and controls
88 lines (81 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright (c) 2017-present SIGHUP s.r.l all rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
name: release
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
trigger:
ref:
include:
- refs/tags/**
steps:
- name: prepare-tar-gz
image: alpine:latest
depends_on: [clone]
commands:
- tar -zcvf sd-installer-eks-${DRONE_TAG}.tar.gz modules/ examples/ LICENSE README.md
when:
ref:
include:
- refs/tags/**
- name: prepare-release-notes
image: quay.io/sighup/fury-release-notes-plugin:3.12_2.10.0
pull: always
depends_on: [clone]
settings:
release_notes_file_path: release-notes.md
when:
ref:
include:
- refs/tags/**
- name: publish-prerelease
image: plugins/github-release
pull: always
depends_on:
- prepare-tar-gz
- prepare-release-notes
settings:
api_key:
from_secret: github_token
file_exists: overwrite
files:
- sd-installer-eks-${DRONE_TAG}.tar.gz
prerelease: true
overwrite: true
title: "Preview ${DRONE_TAG}"
note: release-notes.md
checksum:
- md5
- sha256
when:
ref:
include:
- refs/tags/v**-rc**
- name: publish-stable
image: plugins/github-release
pull: always
depends_on:
- prepare-tar-gz
- prepare-release-notes
settings:
api_key:
from_secret: github_token
file_exists: overwrite
files:
- sd-installer-eks-${DRONE_TAG}.tar.gz
prerelease: false
overwrite: true
title: "Release ${DRONE_TAG}"
note: release-notes.md
checksum:
- md5
- sha256
when:
ref:
exclude:
- refs/tags/v**-rc**
include:
- refs/tags/v**