2020-01-20 10:50:13 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /src
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: if-not-exists
|
|
|
|
image: leophys/signal-builder:0.1
|
|
|
|
commands:
|
|
|
|
- sed -i"" 's/inputFile\.delete()//' /src/app/build.gradle
|
|
|
|
- /src/gradlew assembleRelease || true
|
|
|
|
- /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/signal
|
|
|
|
- name: secrets
|
|
|
|
host:
|
|
|
|
path: /var/drone/secrets
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- cron
|
|
|
|
|
2020-02-22 13:33:59 +01:00
|
|
|
---
|
2020-02-22 14:44:17 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-02-22 13:33:59 +01:00
|
|
|
name: notify_success
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: notify_success
|
|
|
|
pull: if-not-exists
|
2020-02-22 14:44:17 +01:00
|
|
|
image: leophys/mailer:0.2
|
2020-02-22 13:33:59 +01:00
|
|
|
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
|
2020-02-22 14:44:17 +01:00
|
|
|
M_SUB: "[Signal] SUCCESS"
|
|
|
|
M_TEXT: "Success building Signal"
|
2020-02-22 13:33:59 +01:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- default
|
|
|
|
|
|
|
|
---
|
2020-02-22 14:44:17 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-02-22 13:33:59 +01:00
|
|
|
name: notify_failure
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: notify_failure
|
|
|
|
pull: if-not-exists
|
2020-02-22 14:44:17 +01:00
|
|
|
image: leophys/mailer:0.2
|
2020-02-22 13:33:59 +01:00
|
|
|
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
|
2020-02-22 14:44:17 +01:00
|
|
|
M_SUB: "[Signal] FAILURE"
|
|
|
|
M_TEXT: "Failed building Signal"
|
2020-02-22 13:33:59 +01:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- default
|
2020-01-20 10:50:13 +01:00
|
|
|
---
|
|
|
|
kind: signature
|
2020-02-22 14:44:17 +01:00
|
|
|
hmac: 906c57103c475d0ea004105a131defa890debc5e8caa99cf5e51e44d8ab64f7f
|
2020-01-20 10:50:13 +01:00
|
|
|
|
|
|
|
...
|