Cache the important things
This commit is contained in:
parent
33aeead2e8
commit
8a10cde794
111
.drone.yml
111
.drone.yml
|
@ -17,18 +17,30 @@ steps:
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if ! [ "$(ls -A /cache_stage/lib)" ]; then
|
if ! [ "$(ls -A /cache_stage/etc)" ]; then
|
||||||
cp -r /var/lib/pacman/. /cache_stage/lib/
|
cp -r /etc/. /cache_stage/etc/
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if ! [ "$(ls -A /cache_stage/cache)" ]; then
|
if ! [ "$(ls -A /cache_stage/opt)" ]; then
|
||||||
cp -r /var/cache/pacman/. /cache_stage/cache/
|
cp -r /opt/. /cache_stage/opt/
|
||||||
|
fi
|
||||||
|
- |
|
||||||
|
if ! [ "$(ls -A /cache_stage/var)" ]; then
|
||||||
|
cp -r /var/. /cache_stage/var/
|
||||||
|
fi
|
||||||
|
- |
|
||||||
|
if ! [ "$(ls -A /usr_stage/usr)" ]; then
|
||||||
|
cp -r /usr/. /usr_stage/usr/
|
||||||
fi
|
fi
|
||||||
volumes:
|
volumes:
|
||||||
- name: lib_electron-ozone
|
- name: etc_electron-ozone
|
||||||
path: /cache_stage/lib
|
path: /cache_stage/etc
|
||||||
- name: cache_electron-ozone
|
- name: opt_electron-ozone
|
||||||
path: /cache_stage/cache
|
path: /cache_stage/opt
|
||||||
|
- name: var_electron-ozone
|
||||||
|
path: /cache_stage/var
|
||||||
|
- name: usr_electron-ozone
|
||||||
|
path: /cache_stage/usr
|
||||||
|
|
||||||
- name: build_electron-ozone
|
- name: build_electron-ozone
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
|
@ -38,21 +50,31 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_electron-ozone
|
- name: build_electron-ozone
|
||||||
path: /build
|
path: /build
|
||||||
- name: lib_electron-ozone
|
- name: etc_electron-ozone
|
||||||
path: /var/lib/pacman2
|
path: /etc
|
||||||
- name: cache_electron-ozone
|
- name: opt_electron-ozone
|
||||||
path: /var/cache/pacman2
|
path: /opt
|
||||||
|
- name: var_electron-ozone
|
||||||
|
path: /var
|
||||||
|
- name: usr_electron-ozone
|
||||||
|
path: /usr
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_electron-ozone
|
- name: build_electron-ozone
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/electron-ozone
|
path: /var/builds/archlinux/electron-ozone
|
||||||
- name: lib_electron-ozone
|
- name: etc_electron-ozone
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/lib/electron-ozone
|
path: /var/builds/archlinux/etc/electron-ozone
|
||||||
- name: cache_electron-ozone
|
- name: opt_electron-ozone
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/cache/electron-ozone
|
path: /var/builds/archlinux/opt/electron-ozone
|
||||||
|
- name: var_electron-ozone
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/var/electron-ozone
|
||||||
|
- name: usr_electron-ozone
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/usr/electron-ozone
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
@ -113,43 +135,64 @@ steps:
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if ! [ "$(ls -A /cache_stage/lib)" ]; then
|
if ! [ "$(ls -A /cache_stage/etc)" ]; then
|
||||||
cp -r /var/lib/pacman/. /cache_stage/lib/
|
cp -r /etc/. /cache_stage/etc/
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if ! [ "$(ls -A /cache_stage/cache)" ]; then
|
if ! [ "$(ls -A /cache_stage/opt)" ]; then
|
||||||
cp -r /var/cache/pacman/. /cache_stage/cache/
|
cp -r /opt/. /cache_stage/opt/
|
||||||
|
fi
|
||||||
|
- |
|
||||||
|
if ! [ "$(ls -A /cache_stage/var)" ]; then
|
||||||
|
cp -r /var/. /cache_stage/var/
|
||||||
|
fi
|
||||||
|
- |
|
||||||
|
if ! [ "$(ls -A /usr_stage/usr)" ]; then
|
||||||
|
cp -r /usr/. /usr_stage/usr/
|
||||||
fi
|
fi
|
||||||
volumes:
|
volumes:
|
||||||
- name: lib_discord_arch_electron
|
- name: etc_discord_arch_electron
|
||||||
path: /cache_stage/lib
|
path: /cache_stage/etc
|
||||||
- name: cache_discord_arch_electron
|
- name: opt_discord_arch_electron
|
||||||
path: /cache_stage/cache
|
path: /cache_stage/opt
|
||||||
|
- name: var_discord_arch_electron
|
||||||
|
path: /cache_stage/var
|
||||||
|
- name: usr_discord_arch_electron
|
||||||
|
path: /cache_stage/usr
|
||||||
|
|
||||||
- name: build_discord_arch_electron
|
- name: build_discord_arch_electron
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: leophys/pikaur:0.2
|
image: leophys/pikaur:0.2
|
||||||
commands:
|
commands:
|
||||||
- /usr/bin/pikaur -Sy --noconfirm asar
|
|
||||||
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron
|
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_discord_arch_electron
|
- name: build_discord_arch_electron
|
||||||
path: /build
|
path: /build
|
||||||
- name: lib_discord_arch_electron
|
- name: etc_discord_arch_electron
|
||||||
path: /var/lib/pacman
|
path: /etc
|
||||||
- name: cache_discord_arch_electron
|
- name: opt_discord_arch_electron
|
||||||
path: /var/cache/pacman
|
path: /opt
|
||||||
|
- name: var_discord_arch_electron
|
||||||
|
path: /var
|
||||||
|
- name: usr_discord_arch_electron
|
||||||
|
path: /usr
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: build_discord_arch_electron
|
- name: build_discord_arch_electron
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/discord_arch_electron
|
path: /var/builds/archlinux/discord_arch_electron
|
||||||
- name: lib_discord_arch_electron
|
- name: etc_discord_arch_electron
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/lib/discord_arch_electron
|
path: /var/builds/archlinux/etc/discord_arch_electron
|
||||||
- name: cache_discord_arch_electron
|
- name: opt_discord_arch_electron
|
||||||
host:
|
host:
|
||||||
path: /var/builds/archlinux/cache/discord_arch_electron
|
path: /var/builds/archlinux/opt/discord_arch_electron
|
||||||
|
- name: var_discord_arch_electron
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/var/discord_arch_electron
|
||||||
|
- name: usr_discord_arch_electron
|
||||||
|
host:
|
||||||
|
path: /var/builds/archlinux/usr/discord_arch_electron
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
@ -227,6 +270,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 4fd591f5fbba4c84b073b89cd48c621fc07275f31892b2753fa1abc07da4402e
|
hmac: fa8c819a984d73e7a3956dec51566aa26b0fae4c67c24f4d0cdbd048f477d8fa
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user