Make arch pkg build work and add rsync
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
019a511671
commit
9531f2166f
1 changed files with 34 additions and 12 deletions
46
.drone.yml
46
.drone.yml
|
@ -1,16 +1,38 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: koalaman/shellcheck-alpine:latest
|
image: koalaman/shellcheck-alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \;
|
- find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \;
|
||||||
- name: build arch package
|
- name: build arch package
|
||||||
image: whynothugo/makepkg
|
image: archlinux/archlinux:base-devel
|
||||||
environment:
|
commands:
|
||||||
SYNC_DATABASE: 1
|
- useradd -m build
|
||||||
commands:
|
- pacman -Syu --noconfirm
|
||||||
- cp -r /drone/src /pkg
|
- pacman -Sy --noconfirm git
|
||||||
- cd /home/build/_pkg
|
- cp -r /drone/src/_pkg/ /home/build/
|
||||||
- makepkg -cs
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue