package_sources/.drone.yml
Tobias Manske e3166d01f6
Some checks failed
continuous-integration/drone/push Build is failing
fixup! fixup! fixup! fixup! Update submodules on pipeline run
2023-08-21 16:22:31 +02:00

50 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: Build ArchLinux packages!
trigger:
event:
include:
- push
steps:
- name: Abort if CI Commit
image: registry.tobiasmanske.de/git:latest
commands:
- echo "$GIT_COMMITTER_NAME"
- "[[ \"$GIT_COMMITTER_NAME\" = \"Drone CI\" ]] && exit 78"
- "[[ \"$GIT_COMMITTER_NAME\" = \"\" ]] && exit 78" # No commit info. Abort.
- exit 0
- name: Update submodules
image: registry.tobiasmanske.de/git:latest
environment:
SSH_KEY:
from_secret: CI_ssh_key
commands:
- mkdir ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_ed25519
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
- git config user.name "Drone CI"
- git config user.email "noreply@tobiasmanske.de"
- git submodule update --init --recursive
- git submodule update --remote --merge
- git add -A
- git commit -m "Update submodules from CI"
- git push -u origin main
- name: Start buildpipeline
image: plugins/downstream
settings:
server: https://drone.tobiasmanske.de
wait: false
token:
from_secret: drone_token
repositories:
- archlinux-repo/builder
params:
- "NO_GIT_REBUILD=true"
image_pull_secrets:
- registry