From bb08a22ad5df94f269911e3dccf2dda4ca07abc8 Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 8 Mar 2026 02:43:22 +0100 Subject: [PATCH] ci: add .gitea folder --- .gitea/workflows/cd.yaml | 19 +++++++++++++++++++ .gitea/workflows/ci.yaml | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/cd.yaml create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..047ad58 --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -0,0 +1,19 @@ +name: Continuous Delivery + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + build_n_upload: + runs-on: self-hosted + steps: + - uses: actions/checkout@v6 + with: + fetch-tags: true + - run: make tarball + - run: rpmbuild -ba "$(make name).spec" + - run: make upload + env: + PKG_TOKEN: ${{ secrets.PKG_TOKEN }} diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..a3aad75 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,17 @@ +name: Continuous Integration + +on: + push: + branches: + - main + +jobs: + lint_n_build: + runs-on: self-hosted + steps: + - uses: actions/checkout@v6 + with: + fetch-tags: true + - run: shellcheck files/sbin/certbot_renew + - run: make tarball + - run: rpmbuild -ba "$(make name).spec"