This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
54 lines (46 loc) · 1.55 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
kind: pipeline
name: "Test & Build"
type: docker
steps:
- name: Dependencies
image: cortezaproject/corteza-webapp-builder
commands: [ "yarn install" ]
- name: Lint
image: cortezaproject/corteza-webapp-builder
commands: [ "yarn lint" ]
- name: Test
image: cortezaproject/corteza-webapp-builder
commands: [ "yarn test:unit" ]
- name: Build
image: cortezaproject/corteza-webapp-builder
commands: [ "yarn build" ]
- name: Pack
when:
ref: { include: [ "refs/tags/20??.*.*", "refs/heads/master", "refs/heads/preview" ] }
event: [ "push", "tag" ]
image: cortezaproject/corteza-webapp-builder
volumes: [ { name: webapp-build, path: /var/build} ]
commands: [ "tar -cjf /var/build/$DRONE_REPO_NAME-${DRONE_TAG=${DRONE_BRANCH}}.tar.bz2 -C dist/ ." ]
- name: Trigger build merge
when:
ref: { include: [ "refs/tags/20??.*.*", "refs/heads/master", "refs/heads/preview" ] }
event: [ "push", "tag" ]
image: plugins/downstream
commands: []
settings:
fork: true
server: https://drone.crust.tech
token: { from_secret: drone_token }
params: [ "APP_VERSION=${DRONE_TAG=${DRONE_BRANCH}}" ]
repositories:
# Dynamically constructs Drone repo name that will be notified
- "${DRONE_REPO_NAMESPACE}/${DRONE_REPO_NAME%%-admin}"
trigger:
event:
# Pipeline will be executed from branch event,
# this ensures we do not run duplicates.
exclude: [ 'pull_request' ]
volumes:
- name: webapp-build
host:
path: /var/build/drone/webapp-build