Compare commits
32 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
983b0b119f |
||
|
|
7448aff25d |
||
|
|
2760eb0219 |
||
|
|
3544af80c9 |
||
|
|
0be717df42 |
||
|
|
da731a53ce |
||
|
|
ce684f4593 |
||
|
|
e2c59c7d73 |
||
|
|
861828b409 |
||
|
|
c0efd272ee |
||
|
|
08a5a91028 |
||
|
|
68e39ef351 |
||
|
|
70315eca96 |
||
|
|
b99cbb62e4 |
||
|
|
878e7c45a7 |
||
|
|
3776f12d03 |
||
|
|
279c353026 |
||
|
|
ca9fc52d3b |
||
|
|
227f65476d |
||
|
|
7f25581d7b |
||
|
|
bf59aeb3c8 |
||
|
|
5b92828a31 |
||
|
|
eae2902473 |
||
|
|
228abb3341 |
||
|
|
9647254c37 |
||
|
|
9df2ecd29e |
||
|
|
12a282c82d |
||
|
|
f55609945e |
||
|
|
c2221ede03 |
||
|
|
f7fd748041 |
||
|
|
45f1d26f00 |
||
|
|
fdc91f7c29 |
3 changed files with 30 additions and 35 deletions
30
.gitea/workflows/build.yaml
Normal file
30
.gitea/workflows/build.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build profile
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' | ssh-add -
|
||||||
|
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
|
- run: |
|
||||||
|
git config --global user.email ci@gitnet.fr
|
||||||
|
git config --global user.name CI
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: |
|
||||||
|
cp README.tpl.md README.md
|
||||||
|
./bin/rss -f https://www.deblan.io/RSS | head --lines=10 >> README.md
|
||||||
|
- run: |
|
||||||
|
git status
|
||||||
|
git add .
|
||||||
|
git commit -m "Build ${{ gitea.job }}" || true
|
||||||
|
git remote add repo git@gitnet.fr:deblan/.profile.git
|
||||||
|
#git push repo main || true
|
||||||
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
steps:
|
|
||||||
update_profile:
|
|
||||||
image: alpine/git
|
|
||||||
secrets: [ssh_priv_key]
|
|
||||||
commands:
|
|
||||||
- git config --global user.email ci@gitnet.fr
|
|
||||||
- git config --global user.name CI
|
|
||||||
- apk add wget
|
|
||||||
- cp README.tpl.md README.md
|
|
||||||
- ./bin/rss -f https://www.deblan.io/RSS | head -n 10 >> README.md
|
|
||||||
- git status
|
|
||||||
- git add .
|
|
||||||
- git commit -m "Build ${CI_BUILD_NUMBER}" || true
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
|
|
||||||
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
|
||||||
- git remote add repo git@gitnet.fr:deblan/.profile.git
|
|
||||||
- git push repo main || true
|
|
||||||
when:
|
|
||||||
event: [deployment, cron]
|
|
||||||
|
|
||||||
# deploy:
|
|
||||||
# image: appleboy/drone-git-push
|
|
||||||
# commands:
|
|
||||||
# settings:
|
|
||||||
# branch: main
|
|
||||||
# remote: git@gitnet.fr:deblan/.profile.git
|
|
||||||
# force: false
|
|
||||||
# commit: false
|
|
||||||
# ssh_key:
|
|
||||||
# from_secret: ssh_priv_key
|
|
||||||
# when:
|
|
||||||
# event: [push, deployment, cron]
|
|
||||||
1
bin/rss
1
bin/rss
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
set -x
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
printf "Usage: %s [-l DEBUG_LEVEL] [-f URL] [-h]\n" "$0"
|
printf "Usage: %s [-l DEBUG_LEVEL] [-f URL] [-h]\n" "$0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue