2023-03-27 15:25:34 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build ArchLinux packages!
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
2023-08-21 15:57:46 +02:00
|
|
|
- name: Abort if CI Commit
|
|
|
|
image: registry.tobiasmanske.de/git:latest
|
|
|
|
commands:
|
2023-08-21 16:22:31 +02:00
|
|
|
- echo "$GIT_COMMITTER_NAME"
|
2023-08-21 16:03:48 +02:00
|
|
|
- "[[ \"$GIT_COMMITTER_NAME\" = \"Drone CI\" ]] && exit 78"
|
|
|
|
- "[[ \"$GIT_COMMITTER_NAME\" = \"\" ]] && exit 78" # No commit info. Abort.
|
2023-08-21 15:57:46 +02:00
|
|
|
- exit 0
|
|
|
|
|
|
|
|
- name: Update submodules
|
|
|
|
image: registry.tobiasmanske.de/git:latest
|
2023-08-21 16:20:49 +02:00
|
|
|
environment:
|
|
|
|
SSH_KEY:
|
|
|
|
from_secret: CI_ssh_key
|
2023-08-21 15:57:46 +02:00
|
|
|
commands:
|
2023-08-21 16:20:49 +02:00
|
|
|
- mkdir ~/.ssh
|
|
|
|
- echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
|
2023-08-21 15:57:46 +02:00
|
|
|
- git config user.name "Drone CI"
|
|
|
|
- git config user.email "noreply@tobiasmanske.de"
|
2023-08-21 16:06:29 +02:00
|
|
|
- git submodule update --init --recursive
|
2023-08-21 15:57:46 +02:00
|
|
|
- git submodule update --remote --merge
|
|
|
|
- git add -A
|
|
|
|
- git commit -m "Update submodules from CI"
|
2023-08-21 16:20:49 +02:00
|
|
|
- git push -u origin main
|
2023-03-27 15:25:34 +02:00
|
|
|
- name: Start buildpipeline
|
|
|
|
image: plugins/downstream
|
|
|
|
settings:
|
|
|
|
server: https://drone.tobiasmanske.de
|
2023-03-28 06:42:56 +02:00
|
|
|
wait: false
|
2023-03-27 15:25:34 +02:00
|
|
|
token:
|
|
|
|
from_secret: drone_token
|
|
|
|
repositories:
|
|
|
|
- archlinux-repo/builder
|
2023-08-21 23:56:12 +02:00
|
|
|
params:
|
|
|
|
- "NO_GIT_REBUILD=true"
|
2023-08-21 15:57:46 +02:00
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- registry
|