add drone

fix drone

fix drone

add jq to drone

add password

change pw

change pw
This commit is contained in:
Lukas Ziegler 2022-03-18 17:56:02 +01:00
parent 895a2e2467
commit afd87ea949
2 changed files with 28 additions and 1 deletions

22
.drone.yml Normal file
View File

@ -0,0 +1,22 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: arm
clone:
skip_verify: true
steps:
- name: git
image: plugins/git
commands:
- git config user.name $USERNAME
- git config user.password $PASSWORD
- /bin/ash gather.sh
environment:
PASSWORD:
from_secret: password
USERNAME:
from_secret: username

View File

@ -1,5 +1,8 @@
# Flectra Community Module Gather # Flectra Community Module Gather
apk update
apk add jq
for i in {1..3}; do for i in {1..3}; do
repos=$(curl -s "https://gitlab.com/api/v4/groups/flectra-community/projects?per_page=100&page=${i}") repos=$(curl -s "https://gitlab.com/api/v4/groups/flectra-community/projects?per_page=100&page=${i}")
git config --global merge.ours.driver true git config --global merge.ours.driver true
@ -17,6 +20,7 @@ for i in {1..3}; do
git fetch $name git fetch $name
git checkout 2.0 git checkout 2.0
git merge --no-edit --allow-unrelated-histories $name/2.0 git merge --no-edit --allow-unrelated-histories $name/2.0
git checkout 2.0-fixed
git merge --no-edit --allow-unrelated-histories $name/2.0-fixed git merge --no-edit --allow-unrelated-histories $name/2.0-fixed
git checkout 2.0-upstream git checkout 2.0-upstream
git merge --no-edit --allow-unrelated-histories $name/2.0-upstream git merge --no-edit --allow-unrelated-histories $name/2.0-upstream
@ -30,3 +34,4 @@ for i in {1..3}; do
git gc --prune=now git gc --prune=now
done done
done done
git push --all