1
0
Fork 0
fenix/.drone.yml

132 lines
2.1 KiB
YAML
Raw Normal View History

2020-01-28 11:46:28 +01:00
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
workspace:
base: /src
steps:
- name: build
pull: if-not-exists
2020-01-28 15:38:30 +01:00
image: leophys/fenix-builder:0.3
2020-01-28 11:46:28 +01:00
commands:
2020-01-28 12:59:24 +01:00
- /src/gradlew assembleGeckoNightly
2020-01-28 11:46:28 +01:00
- /src/sign.sh
environment:
KEY_PASSWORD:
from_secret: key_password
KEY_PATH: /secrets/key.jks
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
---
type: pipeline
name: notify_success
clone:
disable: true
steps:
- name: notify_success
pull: if-not-exists
image: leophys/mailer:0.1
commands: |
cat << EOM \| /sendmail \
-server-address=${M_SERVER_ADDRESS} \
-server-port=465 \
-user=${M_USER} \
-password=${M_PASSWORD} \
-from=${M_FROM} \
-to=${M_TO} \
-sub="[fenix|SUCCESS] $(date +%Y-%m-%d_%H:%M)" \
Success building fenix \
EOM
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
trigger:
status:
- success
depends_on:
- default
---
type: pipeline
name: notify_failure
clone:
disable: true
steps:
- name: notify_failure
pull: if-not-exists
image: leophys/mailer:0.1
commands: |
cat << EOM \| /sendmail \
-server-address=${M_SERVER_ADDRESS} \
-server-port=465 \
-user=${M_USER} \
-password=${M_PASSWORD} \
-from=${M_FROM} \
-to=${M_TO} \
-sub="[fenix|FAIL] $(date +%Y-%m-%d_%H:%M)" \
Failed building fenix \
EOM
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
trigger:
status:
- failure
depends_on:
- default
2020-01-28 11:49:15 +01:00
---
kind: signature
hmac: 58b7d3379af2812381ff21ab4db11726731e1aa0f9e330c13cc2c4fd9ac10d5a
2020-01-28 11:49:15 +01:00
...