49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: amd64
|
|
|
|
steps:
|
|
- name: makepkg
|
|
image: docker.io/volkerraschek/build-image:latest
|
|
commands:
|
|
- pacman --sync --refresh --sysupgrade --noconfirm --needed sudo binutils fakeroot
|
|
- useradd --create-home builder
|
|
- chown --recursive builder:builder /drone/src
|
|
- su --shell /bin/bash builder -c "makepkg --force --cleanbuild --noconfirm"
|
|
|
|
- name: upload-pkg-into-aur
|
|
image: appleboy/drone-scp:1.6.2
|
|
settings:
|
|
host: aur.cryptic.systems
|
|
user: root
|
|
key:
|
|
from_secret: repository-ssh-key
|
|
port: 22
|
|
command_timeout: 2m
|
|
target:
|
|
- /srv/aur/x86_64
|
|
source:
|
|
- flucky-*.zst*
|
|
when:
|
|
branch:
|
|
- master
|
|
repo:
|
|
- flucky/PKGBUILD
|
|
|
|
# - name: push-latest-commit
|
|
# environment:
|
|
# GIT_PUSH_SSH_KEY:
|
|
# from_secret:
|
|
# github_ssh_key
|
|
# image: appleboy/drone-git-push:0.2.0-linux-amd64
|
|
# settings:
|
|
# remote: git@github.com:flucky/PKGBUILD.git
|
|
# force: true
|
|
# when:
|
|
# branch:
|
|
# - master
|
|
# repo:
|
|
# - flucky/PKGBUILD
|
|
|
|
# node:
|
|
# aur: "true" |