system-helpers/.drone.yml
Alexander Schäferdiek 91795249ad
All checks were successful
continuous-integration/drone/push Build is passing
ArchLinux repository without any $arch
2022-07-11 22:49:31 +02:00

40 lines
1.2 KiB
YAML

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: 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
- sudo -u build repo-add repo-aur-myservermanager-com.db.tar.gz *.zst
- cp *.zst /drone/src/_pkg/
- cp *.tar.gz /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,*.db.tar.gz,*.files.tar.gz}
target: /srv/http/myservermanager.com/htdocs/aur/
delete: true
recursive: false
when:
branch:
- master