diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index 243db17..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -1,30 +0,0 @@ -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 - diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..6d81f78 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,36 @@ +steps: + update_profile: + image: alpine/git + environment: + SSH_PRIV_KEY: + from_secret: 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] diff --git a/README.md b/README.md index b399033..f5f36c9 100644 --- a/README.md +++ b/README.md @@ -50,13 +50,3 @@ This application is rather suitable for instances that activate a lot of applica ## Latest blog posts -* [Matrix-Synapse : migrer de SQLite à PostgreSQL](https://www.deblan.io/post/655/matrix-synapse-migrer-de-sqlite-a-postgresql) -* [Remote i3-wm WS : ma télécommande pour bureau GNU/Linux (v2)](https://www.deblan.io/post/654/remote-i3-wm-ws-ma-telecommande-pour-bureau-gnu-linux-v2) -* [Signez la pétition pour empêcher la France d’obliger les navigateurs tels que Firefox de Mozilla à censurer des sites web](https://www.deblan.io/post/653/signez-la-petition-pour-empecher-la-france-d-obliger-les-navigateurs-tels-que-firefox-de-mozilla-a-censurer-des-sites-web) -* [Internet devient-il un Minitel 2.0 ou un bien commun ? - Benjamin Bayart - RTS – Libre à lire !](https://www.deblan.io/post/652/internet-devient-il-un-minitel-2-0-ou-un-bien-commun-benjamin-bayart-rts-libre-a-lire) -* [Murph v1.20 is out! 📣](https://www.deblan.io/post/651/murph-v1-20-is-out) -* [Je n'ai rien à cacher.](https://www.deblan.io/post/650/je-nai-rien-a-cacher) -* [Capture, un reverse proxy pour analyser les requêtes de vos applications](https://www.deblan.io/post/648/capture-un-proxy-pour-analyser-les-requetes-de-vos-applications) -* [Affaire du 8 décembre : le chiffrement des communications assimilé à un comportement terroriste](https://www.deblan.io/post/649/affaire-du-8-decembre-le-chiffrement-des-communications-assimile-a-un-comportement-terroriste) -* [Un modèle pour démarrer un script shell](https://www.deblan.io/post/647/modele-pour-demarrer-script-shell) -* [Quoi de neuf sur les internets ? #1](https://www.deblan.io/post/646/quoi-de-neuf-sur-les-internets-1) diff --git a/bin/rss b/bin/rss index d81247e..e5fdf94 100755 --- a/bin/rss +++ b/bin/rss @@ -1,6 +1,7 @@ #!/bin/sh set -eu +set -x usage() { printf "Usage: %s [-l DEBUG_LEVEL] [-f URL] [-h]\n" "$0"