117 lines
1.8 KiB
YAML
117 lines
1.8 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
workspace:
|
|
base: /src
|
|
|
|
steps:
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: leophys/fenix-builder:0.5
|
|
commands:
|
|
- /src/gradlew --stacktrace assembleGeckoNightly
|
|
- /src/sign.sh
|
|
environment:
|
|
KEY_PASSWORD:
|
|
from_secret: key_password
|
|
KEY_PATH: /secrets/key.jks
|
|
ANDROID_SDK_ROOT: /usr/local/android-sdk-linux
|
|
volumes:
|
|
- name: builds_output
|
|
path: /builds/
|
|
- name: secrets
|
|
path: /secrets
|
|
|
|
volumes:
|
|
- name: builds_output
|
|
host:
|
|
path: /var/builds/fenix
|
|
- name: secrets
|
|
host:
|
|
path: /var/drone/secrets
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
- cron
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: notify_success
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: notify_success
|
|
pull: if-not-exists
|
|
image: leophys/mailer:0.5
|
|
environment:
|
|
M_SERVER_ADDRESS:
|
|
from_secret: m_server_address
|
|
M_USER:
|
|
from_secret: m_user
|
|
M_PASSWORD:
|
|
from_secret: m_password
|
|
M_FROM:
|
|
from_secret: m_from
|
|
M_TO:
|
|
from_secret: m_to
|
|
M_SUB: "[fenix] SUCCESS"
|
|
M_TEXT: "Success building fenix"
|
|
|
|
trigger:
|
|
status:
|
|
- success
|
|
|
|
depends_on:
|
|
- default
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: notify_failure
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: notify_failure
|
|
pull: if-not-exists
|
|
image: leophys/mailer:0.5
|
|
environment:
|
|
M_SERVER_ADDRESS:
|
|
from_secret: m_server_address
|
|
M_USER:
|
|
from_secret: m_user
|
|
M_PASSWORD:
|
|
from_secret: m_password
|
|
M_FROM:
|
|
from_secret: m_from
|
|
M_TO:
|
|
from_secret: m_to
|
|
M_SUB: "[fenix] FAILURE"
|
|
M_TEXT: "Failed building fenix"
|
|
|
|
trigger:
|
|
status:
|
|
- failure
|
|
|
|
depends_on:
|
|
- default
|
|
|
|
---
|
|
kind: signature
|
|
hmac: ac9c63a1a1d65224152568ff9f2e1c7b9f5e3b44870da5518583fa36cf879a97
|
|
|
|
...
|