-
Notifications
You must be signed in to change notification settings - Fork 12
/
.drone.yml
34 lines (31 loc) · 876 Bytes
/
.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
kind: pipeline
name: default
# Limits how many of these builds can run on the drone runner at a time, this isn't about cores
concurrency:
limit: 1
volumes:
- name: cache-be
host:
path: /home/go/pkg
- name: cache-fe
host:
path: /home/go/src/frontend/node_modules
steps:
- name: spire-build-release
image: akkadius/spire:go-workspace-v12
environment:
GH_RELEASE_GITHUB_API_TOKEN:
from_secret: GH_RELEASE_GITHUB_API_TOKEN
commands:
- sudo chown -R go /drone/src
- sudo chown -R go /home/go/pkg
- sudo chown -R go /drone/src/frontend/node_modules
- ./scripts/build-release.sh
when:
branch: [ "master", "akkadius/eqemu-installer-v2" ]
event: [ push ]
volumes:
- name: cache-be
path: /home/go/pkg
- name: cache-fe
path: /drone/src/frontend/node_modules