From f200b2477a26ad79ad54d89fb9287c497386d2de Mon Sep 17 00:00:00 2001 From: ashard_bot Date: Sat, 19 Sep 2026 12:30:09 +0000 Subject: [PATCH] ci: build and publish AEvolution image --- .gitea/workflows/build.yaml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..297d9ff --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,40 @@ +name: Build and publish AEvolution + +on: + push: + branches: [main] + pull_request: + +jobs: + verify: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Configure release build + run: cmake --preset release -B build/ci + - name: Build + run: cmake --build build/ci --parallel 2 + - name: Test + run: ctest --test-dir build/ci --output-on-failure --no-tests=error --timeout 120 + + publish: + if: gitea.event_name == 'push' + needs: verify + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Check Docker + run: docker version + - uses: docker/login-action@v3 + with: + registry: ${{ vars.HARBOR_HOST }} + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} + - uses: docker/build-push-action@v6 + with: + context: . + file: deploy/docker/Dockerfile + push: true + tags: ${{ vars.HARBOR_HOST }}/${{ vars.HARBOR_PROJECT }}/aevolution:${{ gitea.sha }} + provenance: true + sbom: true