diff --git a/.drone.yml b/.drone.yml index 6368c2c..a6943df 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,9 +8,27 @@ platform: arch: amd64 workspace: - base: /src + path: /drone steps: +- name: cache-init_electron-ozone + pull: if-not-exists + image: leophys/pikaur:0.2 + commands: + - | + if ![ "$(sudo ls -A /cache_stage/lib)" ]; then + sudo cp -r /var/lib/pacman /drone/lib_pacman + fi + - | + if ![ "$(sudo ls -A /cache_stage/cache)" ]; then + 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 + - name: build_electron-ozone pull: if-not-exists image: leophys/pikaur:0.2 @@ -88,10 +106,28 @@ platform: arch: amd64 workspace: - base: /src + path: /drone steps: -- name: build_electron-ozone +- name: cache-init_discord_arch_electron + pull: if-not-exists + image: leophys/pikaur:0.2 + commands: + - | + if ![ "$(sudo ls -A /cache_stage/lib)" ]; then + sudo cp -r /var/lib/pacman /drone/lib_pacman + fi + - | + if ![ "$(sudo ls -A /cache_stage/cache)" ]; then + 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 pull: if-not-exists image: leophys/pikaur:0.2 commands: @@ -191,6 +227,6 @@ depends_on: --- kind: signature -hmac: 328629f24cfd6ba55c31f13b51c7c1c20c120284acaa5834275fda4cba0bbca6 +hmac: 03ace5f5e26acf37d780e481d43aff4956ad477b1e9482241b03cf8e5a1cbe7a ...