system-helpers/.drone.yml
Alexander Schäferdiek e6b9e4a800
All checks were successful
continuous-integration/drone/push Build is passing
Adapt drone pipeline events #noissue
2023-03-20 19:10:59 +01:00

47 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: build
trigger:
event:
include:
- push
- pull_request
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