diff --git a/.drone.yml b/.drone.yml index 5a4d633..bd2632a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,16 +1,38 @@ kind: pipeline +type: docker name: default steps: - - name: test - image: koalaman/shellcheck-alpine:latest - commands: - - find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \; - - name: build arch package - image: whynothugo/makepkg - environment: - SYNC_DATABASE: 1 - commands: - - cp -r /drone/src /pkg - - cd /home/build/_pkg - - makepkg -cs \ No newline at end of file + - name: test + image: koalaman/shellcheck-alpine:latest + commands: + - find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \; + - name: build arch package + image: archlinux/archlinux:base-devel + commands: + - useradd -m build + - pacman -Syu --noconfirm + - pacman -Sy --noconfirm git + - cp -r /drone/src/_pkg/ /home/build/ + - chown -R build:build /home/build + - cd /home/build/_pkg + - sudo -u build makepkg -csf + - cp *.zst /drone/src/_pkg/ + - name: upload to aur.myservermanager.com + image: drillster/drone-rsync + environment: + PLUGIN_ARGS: -zz + settings: + hosts: + - myservermanager.com + port: 2222 + user: myservermanager-com + key: + from_secret: deploy_ssh_key + source: ./_pkg/*.zst + target: /srv/http/myservermanager.com/htdocs/aur/x86_64/ + delete: true + recursive: true + when: + branch: + - master