This commit is contained in:
parent
5fd6826bde
commit
d2d77d1227
42
.drone.yml
42
.drone.yml
@ -1,5 +1,31 @@
|
|||||||
---
|
---
|
||||||
|
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
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: deploy
|
name: deploy
|
||||||
@ -9,17 +35,21 @@ node_selector:
|
|||||||
kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: arch-linux-pkg
|
- name: build-pkg
|
||||||
commands:
|
commands:
|
||||||
- sed --in-place 's/pkgver=.*/pkgver=${DRONE_TAG}/' PKGBUILD
|
|
||||||
- makepkg --sign
|
- makepkg --sign
|
||||||
|
- scp *.pkg.tar.zst* ${AUR_SERVER}:/${AUR_PATH}
|
||||||
environment:
|
environment:
|
||||||
MAKEPKG_PACKAGER: "csrbot@cryptic.systems"
|
MAKEPKG_PACKAGER: "csrbot@cryptic.systems"
|
||||||
MAKEPKG_PKGEXT: ".pkg.tar.zst"
|
MAKEPKG_PKGEXT: ".pkg.tar.zst"
|
||||||
MAKEPKG_SRCEXT: ".src.tar.zst"
|
MAKEPKG_SRCEXT: ".src.tar.zst"
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret:
|
||||||
|
ssh_key
|
||||||
image: docker.io/volkerraschek/build-image:latest
|
image: docker.io/volkerraschek/build-image:latest
|
||||||
|
|
||||||
# trigger:
|
trigger:
|
||||||
# event:
|
event:
|
||||||
# include:
|
include:
|
||||||
# - tag
|
- pull_request
|
||||||
|
- push
|
Loading…
Reference in New Issue
Block a user