From e061a457394740e381ec2da521d0204e9bdb5317 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 2 Jul 2024 17:03:59 +0200 Subject: [PATCH] [ci] feat: migrated to gitea actions workflow --- .drone.yaml | 39 ------------------------------- .gitea/workflows/renovate.yaml | 42 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 39 deletions(-) delete mode 100644 .drone.yaml create mode 100644 .gitea/workflows/renovate.yaml diff --git a/.drone.yaml b/.drone.yaml deleted file mode 100644 index c84e05d..0000000 --- a/.drone.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- - -# renovate -name: 'renovate' -kind: 'pipeline' -type: 'kubernetes' - - -# renovate steps -steps: - - # run renovate - - name: 'renovate' - image: 'registry.hub.docker.com/renovate/renovate' - when: - branch: - - 'master' - - # run this command - commands: - - 'renovate' - - # environment variables - environment: - - # renovate -> github - GITHUB_COM_TOKEN: - from_secret: 'github_access_token' - - # renovate -> gitea - RENOVATE_TOKEN: - from_secret: 'renovate_token' - - RENOVATE_USERNAME: 'renovate' - RENOVATE_PLATFORM: 'gitea' - RENOVATE_ENDPOINT: 'https://git.simoncor.net/api/v1' - RENOVATE_GIT_URL: 'endpoint' - RENOVATE_GIT_AUTHOR: 'Renovate Bot ' - RENOVATE_AUTODISCOVER: true diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..80a61ba --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,42 @@ +--- + +# generic +name: 'Renovate Bot' +on: + schedule: + - cron: "0 45 6 * * *" + push: + branches: + - 'master' + +# jobs +jobs: + + # renovate + renovate: + runs-on: 'ubuntu-latest' + container: 'ghcr.io/renovatebot/renovate:latest' + steps: + + # checkout code + - name: 'Clone repo' + uses: 'actions/checkout@v2' + + # run renovate + - run: 'renovate' + env: + + # generic + LOG_LEVEL: 'info' + + # renovate -> github + GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }} + + # renovate -> gitea + RENOVATE_USERNAME: 'renovate' + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + RENOVATE_PLATFORM: 'gitea' + RENOVATE_ENDPOINT: 'https://git.simoncor.net/api/v1' + RENOVATE_GIT_URL: 'endpoint' + RENOVATE_GIT_AUTHOR: 'Renovate Bot ' + RENOVATE_AUTODISCOVER: true