diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..85a213f --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: CI +on: + push: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-go@v5 + with: + go-version: "1.25" + + - name: Tests + run: make tests + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea registry + uses: docker/login-action@v3 + with: + registry: gitea.va.reichard.io + username: ${{ github.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: Dockerfile-BuildKit + platforms: linux/amd64,linux/arm64 + push: true + tags: gitea.va.reichard.io/evan/conduit:dev