You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

116 lines
1.8 KiB

---
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 app:assemble
- /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: 75d28c4234d1faa970a1fa4c54917bad4ba57122389cad5ae8f3b3a600d16aef
...