From b6ad6119d59e0da4996fb5f45e9d91c8f1a1c0a3 Mon Sep 17 00:00:00 2001 From: Djeex Date: Fri, 21 Aug 2026 18:57:22 +0200 Subject: [PATCH] Add CI workflow" --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9e80200 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + schedule: + - cron: "0 6 * * 1" + +jobs: + build-and-scan: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build Docker image + run: docker build -t adguard-cidre:ci . + + - name: Scan with Trivy + uses: aquasecurity/trivy-action@master + with: + image-ref: adguard-cidre:ci + severity: HIGH,CRITICAL + exit-code: 0 \ No newline at end of file