55 lines
964 B
YAML
55 lines
964 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: build
|
|
|
|
node_selector:
|
|
kubernetes.io/os: linux
|
|
kubernetes.io/arch: amd64
|
|
|
|
steps:
|
|
- name: build-pkg
|
|
commands:
|
|
- makepkg --sign
|
|
environment:
|
|
MAKEPKG_PACKAGER: "csrbot@cryptic.systems"
|
|
MAKEPKG_PKGEXT: ".pkg.tar.zst"
|
|
MAKEPKG_SRCEXT: ".src.tar.zst"
|
|
image: docker.io/volkerraschek/build-image:latest
|
|
|
|
trigger:
|
|
event:
|
|
include:
|
|
- pull_request
|
|
- push
|
|
exclude:
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: deploy
|
|
|
|
node_selector:
|
|
kubernetes.io/os: linux
|
|
kubernetes.io/arch: amd64
|
|
|
|
steps:
|
|
- name: build-pkg
|
|
commands:
|
|
- makepkg --sign
|
|
- scp *.pkg.tar.zst* ${AUR_SERVER}:/${AUR_PATH}
|
|
environment:
|
|
MAKEPKG_PACKAGER: "csrbot@cryptic.systems"
|
|
MAKEPKG_PKGEXT: ".pkg.tar.zst"
|
|
MAKEPKG_SRCEXT: ".src.tar.zst"
|
|
SSH_KEY:
|
|
from_secret:
|
|
ssh_key
|
|
image: docker.io/volkerraschek/build-image:latest
|
|
|
|
trigger:
|
|
event:
|
|
include:
|
|
- pull_request
|
|
- push |