pikaur_builder/.drone.yml

233 lines
4.4 KiB
YAML
Raw Normal View History

2021-02-20 20:41:42 +01:00
---
kind: pipeline
type: docker
name: electron-ozone
platform:
os: linux
arch: amd64
workspace:
2021-02-21 11:25:52 +01:00
path: /drone
2021-02-20 20:41:42 +01:00
steps:
2021-02-21 11:25:52 +01:00
- name: cache-init_electron-ozone
pull: if-not-exists
image: leophys/pikaur:0.2
commands:
- |
2021-02-21 11:27:08 +01:00
if ! [ "$(sudo ls -A /cache_stage/lib)" ]; then
2021-02-21 11:25:52 +01:00
sudo cp -r /var/lib/pacman /drone/lib_pacman
fi
- |
2021-02-21 11:27:08 +01:00
if ! [ "$(sudo ls -A /cache_stage/cache)" ]; then
2021-02-21 11:25:52 +01:00
sudo cp -r /var/cache/pacman /drone/cache_pacman
fi
volumes:
- name: lib_electron-ozone
path: /cache_stage/lib
- name: cache_electron-ozone
path: /cache_stage/cache
2021-02-20 20:41:42 +01:00
- name: build_electron-ozone
pull: if-not-exists
2021-02-21 10:49:07 +01:00
image: leophys/pikaur:0.2
2021-02-20 20:41:42 +01:00
commands:
2021-02-21 10:49:07 +01:00
- sudo echo -e "LIB =>\n$(ls /var/lib/pacman)"
- sudo echo -e "CACHE =>\n$(ls /var/cache/pacman)"
- sudo echo -e "ALPM =>\n$(ls /usr/lib/*alpm*)"
2021-02-21 00:24:29 +01:00
- /usr/bin/pikaur -Sy --noconfirm electron-ozone
2021-02-20 20:41:42 +01:00
volumes:
- name: build_electron-ozone
path: /build
2021-02-21 00:58:30 +01:00
- name: lib_electron-ozone
path: /var/lib/pacman
- name: cache_electron-ozone
path: /var/cache/pacman
2021-02-20 20:41:42 +01:00
volumes:
- name: build_electron-ozone
host:
path: /var/builds/archlinux/electron-ozone
2021-02-21 00:58:30 +01:00
- name: lib_electron-ozone
host:
path: /var/builds/archlinux/lib/electron-ozone
- name: cache_electron-ozone
host:
path: /var/builds/archlinux/cache/electron-ozone
2021-02-20 20:41:42 +01:00
trigger:
branch:
- master
event:
- push
- cron
---
kind: pipeline
type: docker
name: notify_failure-electron-ozone
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: "[electron-ozone] FAILURE"
M_TEXT: "Failed building electron-ozone"
trigger:
status:
- failure
depends_on:
- electron-ozone
---
kind: pipeline
type: docker
name: discord_arch_electron
platform:
os: linux
arch: amd64
workspace:
2021-02-21 11:25:52 +01:00
path: /drone
2021-02-20 20:41:42 +01:00
steps:
2021-02-21 11:25:52 +01:00
- name: cache-init_discord_arch_electron
pull: if-not-exists
image: leophys/pikaur:0.2
commands:
- |
2021-02-21 11:27:08 +01:00
if ! [ "$(sudo ls -A /cache_stage/lib)" ]; then
2021-02-21 11:25:52 +01:00
sudo cp -r /var/lib/pacman /drone/lib_pacman
fi
- |
2021-02-21 11:27:08 +01:00
if ! [ "$(sudo ls -A /cache_stage/cache)" ]; then
2021-02-21 11:25:52 +01:00
sudo cp -r /var/cache/pacman /drone/cache_pacman
fi
volumes:
- name: lib_discord_arch_electron
path: /cache_stage/lib
- name: cache_discord_arch_electron
path: /cache_stage/cache
- name: build_discord_arch_electron
2021-02-20 20:41:42 +01:00
pull: if-not-exists
2021-02-21 10:49:07 +01:00
image: leophys/pikaur:0.2
2021-02-20 20:41:42 +01:00
commands:
2021-02-21 00:24:29 +01:00
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron
2021-02-20 20:41:42 +01:00
volumes:
- name: build_discord_arch_electron
path: /build
2021-02-21 00:58:30 +01:00
- name: lib_discord_arch_electron
path: /var/lib/pacman
- name: cache_discord_arch_electron
path: /var/cache/pacman
2021-02-20 20:41:42 +01:00
volumes:
- name: build_discord_arch_electron
host:
path: /var/builds/archlinux/discord_arch_electron
2021-02-21 00:58:30 +01:00
- name: lib_discord_arch_electron
host:
path: /var/builds/archlinux/lib/discord_arch_electron
- name: cache_discord_arch_electron
host:
path: /var/builds/archlinux/cache/discord_arch_electron
2021-02-20 20:41:42 +01:00
trigger:
branch:
- master
event:
- push
- cron
---
kind: pipeline
type: docker
name: notify_failure-discord_arch_electron
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: "[discord_arch_electron] FAILURE"
M_TEXT: "Failed building discord_arch_electron"
trigger:
status:
- failure
depends_on:
- discord_arch_electron
---
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: "[archlinux] SUCCESS"
M_TEXT: "Success building archlinux packages"
trigger:
status:
- success
depends_on:
- electron-ozone
- discord_arch_electron
2021-02-21 00:19:46 +01:00
---
kind: signature
2021-02-21 11:25:52 +01:00
hmac: 03ace5f5e26acf37d780e481d43aff4956ad477b1e9482241b03cf8e5a1cbe7a
2021-02-21 00:19:46 +01:00
...