From 9637fd00a2fdc073587497456d744e02577442bd Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Sun, 19 Apr 2020 02:31:12 +0200 Subject: [PATCH] Switch to Starlark config --- .drone.star | 19 +++++++++++ .drone.yml | 98 ----------------------------------------------------- 2 files changed, 19 insertions(+), 98 deletions(-) create mode 100644 .drone.star delete mode 100644 .drone.yml diff --git a/.drone.star b/.drone.star new file mode 100644 index 0000000..f86a39d --- /dev/null +++ b/.drone.star @@ -0,0 +1,19 @@ +load('@lib://arch_pkg:helpers.star', 'generate') + +config = { + 'arch_matrix': [ + 'aarch64', + 'x86_64' + ], + + 'all': [ + 'wlroots-git', + 'swaybg-git', + 'sway-git', + 'swayidle-git', + 'swaylock-git' + ] +} + +def main(ctx): + return generate(config) diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 56e876e..0000000 --- a/.drone.yml +++ /dev/null @@ -1,98 +0,0 @@ ---- -kind: pipeline -type: docker -name: aarch64 - -platform: - os: linux - arch: arm64 - -steps: - - name: wlroots-git - image: depau/drone-makepkg:aarch64 - pull: always - settings: - aur: wlroots-git - - - name: swaybg-git - image: depau/drone-makepkg:aarch64 - settings: - aur: swaybg-git - - - name: sway-git - image: depau/drone-makepkg:aarch64 - settings: - aur: sway-git - - - name: swayidle-git - image: depau/drone-makepkg:aarch64 - settings: - aur: swayidle-git - - - name: swaylock-git - image: depau/drone-makepkg:aarch64 - settings: - aur: swaylock-git - - - name: upload - image: plugins/s3 - settings: - bucket: archlinux-packages - access_key: - from_secret: minio_user - secret_key: - from_secret: minio_passwd - source: out/* - target: /aarch64 - path_style: true - endpoint: https://objstor.depau.eu - ---- -kind: pipeline -type: docker -name: x86_64 - -platform: - os: linux - arch: amd64 - -steps: - - name: wlroots-git - image: depau/drone-makepkg:x86_64 - pull: always - settings: - aur: wlroots-git - - - name: swaybg-git - image: depau/drone-makepkg:x86_64 - settings: - aur: swaybg-git - - - name: sway-git - image: depau/drone-makepkg:x86_64 - settings: - aur: sway-git - - - name: swayidle-git - image: depau/drone-makepkg:x86_64 - settings: - aur: swayidle-git - - - name: swaylock-git - image: depau/drone-makepkg:x86_64 - settings: - aur: swaylock-git - - - name: upload - image: plugins/s3 - settings: - bucket: archlinux-packages - access_key: - from_secret: minio_user - secret_key: - from_secret: minio_passwd - source: out/* - target: /x86_64 - path_style: true - endpoint: https://objstor.depau.eu -