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