forked from aevea/commitsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
76 lines (69 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
66
67
68
69
70
71
72
73
74
75
76
kind: pipeline
name: default
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
when:
event: [pull_request, tag]
- name: test
image: golang:1.13.5
volumes:
- name: deps
path: /go
commands:
- make ci
depends_on: [clone]
when:
event: [pull_request]
- name: validate commits
image: golang:1.13.5
volumes:
- name: deps
path: /go
commands:
- go run main.go
depends_on: [clone]
when:
event: [pull_request]
# This is here for backwards compatibility for repos using old naming
- name: deprecated-docker
image: plugins/docker
settings:
auto_tag: true
repo: commitsar/commitsar
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: docker
image: plugins/docker
settings:
auto_tag: true
repo: outillage/commitsar
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish-pages
image: commitsar/hugo
environment:
USERNAME:
from_secret: github_username
PASSWORD:
from_secret: github_token
commands:
- echo "machine github.com login $${USERNAME} password $${PASSWORD}" > ~/.netrc
- git fetch --all
- git config --global user.email "[email protected]"
- git config --global user.name "Commitsar Bot"
- cd www
- npm i
- sh ../scripts/publish_to_pages.sh
when:
event: push
branch: master
volumes:
- name: deps
temp: {}