2022-07-10 18:47:46 +00:00
|
|
|
kind: pipeline
|
2022-07-11 19:51:43 +00:00
|
|
|
type: docker
|
2022-07-10 18:47:46 +00:00
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-07-11 19:51:43 +00:00
|
|
|
- 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
|
2022-07-11 20:29:51 +00:00
|
|
|
- sudo -u build repo-add repo-aur-myservermanager-com.db.tar.gz *.zst
|
2022-07-11 19:51:43 +00:00
|
|
|
- cp *.zst /drone/src/_pkg/
|
2022-07-11 20:29:51 +00:00
|
|
|
- cp *.tar.gz /drone/src/_pkg/
|
2022-07-11 19:51:43 +00:00
|
|
|
- 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
|
2022-07-11 20:29:51 +00:00
|
|
|
source: ./_pkg/{*.zst,*.db.tar.gz,*.files.tar.gz}
|
2022-07-11 20:49:31 +00:00
|
|
|
target: /srv/http/myservermanager.com/htdocs/aur/
|
2022-07-11 19:51:43 +00:00
|
|
|
delete: true
|
2022-07-11 20:29:51 +00:00
|
|
|
recursive: false
|
2022-07-11 19:51:43 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|