Update submodules on pipeline run
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d27215d343
commit
4a087cde52
18
.drone.yml
18
.drone.yml
@ -9,6 +9,21 @@ trigger:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Abort if CI Commit
|
||||||
|
image: registry.tobiasmanske.de/git:latest
|
||||||
|
commands:
|
||||||
|
- "[[ \"$${GIT_COMMITTER_NAME}\" = \"Drone CI\" ]] && exit 78"
|
||||||
|
- exit 0
|
||||||
|
|
||||||
|
- name: Update submodules
|
||||||
|
image: registry.tobiasmanske.de/git:latest
|
||||||
|
commands:
|
||||||
|
- git config user.name "Drone CI"
|
||||||
|
- git config user.email "noreply@tobiasmanske.de"
|
||||||
|
- git submodule update --remote --merge
|
||||||
|
- git add -A
|
||||||
|
- git commit -m "Update submodules from CI"
|
||||||
|
- git push
|
||||||
- name: Start buildpipeline
|
- name: Start buildpipeline
|
||||||
image: plugins/downstream
|
image: plugins/downstream
|
||||||
settings:
|
settings:
|
||||||
@ -20,3 +35,6 @@ steps:
|
|||||||
- archlinux-repo/builder
|
- archlinux-repo/builder
|
||||||
params:
|
params:
|
||||||
- "NO_GIT_REBUILD=true"
|
- "NO_GIT_REBUILD=true"
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- registry
|
||||||
|
Loading…
Reference in New Issue
Block a user