mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
Update .woodpecker/instancejson.yml
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
# Credit to Hygna (https://codeberg.org/Hygna)
|
||||
steps:
|
||||
- name: instancejson
|
||||
image: python:3-bullseye
|
||||
secrets: [ssh_key, mail]
|
||||
when:
|
||||
- event: cron
|
||||
cron: instancejson
|
||||
- path:
|
||||
include: ["README.md", ".woodpecker/instancejson.yml"]
|
||||
branch: dev
|
||||
commands:
|
||||
# SSH configuration
|
||||
- mkdir ~/.ssh
|
||||
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
|
||||
- eval `ssh-agent`
|
||||
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
||||
# Running script
|
||||
- git clone git@codeberg.org:gothub/gothub-instances.git instances
|
||||
- cd instances
|
||||
- pip install -r requirements.txt
|
||||
- python3 main.py
|
||||
# Git configuration
|
||||
- git config --global user.email $MAIL
|
||||
- git config --global user.name "Woodpecker CI"
|
||||
- git add instances.json
|
||||
- git commit -m "Updated instances"
|
||||
- git push -u origin master
|
||||
- name: instancejson
|
||||
image: python:3-bullseye
|
||||
secrets: [ssh_key, mail]
|
||||
when:
|
||||
- event: cron
|
||||
cron: instancejson
|
||||
- path:
|
||||
include: ["README.md", ".woodpecker/instancejson.yml"]
|
||||
branch: dev
|
||||
commands:
|
||||
# SSH configuration
|
||||
- mkdir ~/.ssh
|
||||
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
|
||||
- eval `ssh-agent`
|
||||
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
||||
# Running script
|
||||
- git clone git@codeberg.org:gothub/gothub-instances.git instances
|
||||
- cd instances
|
||||
- pip install -r requirements.txt
|
||||
- python3 main.py
|
||||
# Git configuration
|
||||
- git config --global user.email $MAIL
|
||||
- git config --global user.name "Woodpecker CI"
|
||||
- git add instances.json
|
||||
- git commit -m "Updated instances"
|
||||
- git push -u origin master
|
||||
|
||||
Reference in New Issue
Block a user