forked from WoeUSB/WoeUSB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
65 lines (57 loc) · 1.59 KB
/
.drone.yml
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
# Drone CI configuration file
#
# Reference:
# - Drone CI / CD | Drone
# https://docs.drone.io/
# - Docker Pipelines | Drone
# https://docs.drone.io/quickstart/docker/
#
# This file is based on The Common Drone CI Configuration Templates project:
# https://github.com/Lin-Buo-Ren/common-drone-ci-configs
#
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]>
# SPDX-License-Identifier: CC-BY-SA-4.0
kind: pipeline
type: docker
name: Default pipeline based on the Docker runner
# Change default clone behavior
# https://docs.drone.io/pipeline/docker/syntax/cloning/
clone:
depth: 100
# Whether to disable certificate verification over the HTTPS protocol
skip_verify: False
steps:
- name: Fetching Git tags
image: alpine/git
# Allow failure as this stop won't work when running the build via `drone exec`
failure: ignore
commands:
- git fetch --tags
# - name: Fetching Git submodules
# image: alpine/git
# commands:
# - git submodule update --init
- name: Static code analysis
depends_on:
- Fetching Git tags
image: alpine:3.12
commands:
- ./continuous-integration/static-code-analysis.sh
- name: Prepare release
when:
event: tag
depends_on:
- Fetching Git tags
image: alpine:3.12
commands:
- ./continuous-integration/prepare-release.sh
- name: Deliver release to GitHub
when:
event: tag
depends_on:
- Prepare release
image: plugins/github-release
settings:
api_key:
from_secret: github_api_token
files: distribution/standalone/woeusb-*.bash