From fdc91f7c2982ce68d5c95e233b12203f5a2d2b6f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 2 Oct 2023 22:00:36 +0200 Subject: [PATCH] [wip] gitea actions --- .gitea/workflows/build.yaml | 8 ++++++++ .woodpecker.yml | 34 ---------------------------------- 2 files changed, 8 insertions(+), 34 deletions(-) create mode 100644 .gitea/workflows/build.yaml delete mode 100644 .woodpecker.yml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..c8a4ba3 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,8 @@ +name: Build profile +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: whereis git diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 0915f2f..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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]