# # .gitea/gitea-ci.yaml # name: Build And Test run-name: ${{ gitea.actor }} is runs ci pipeline on: push: branches: - main workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: https://github.com/actions/checkout@v6 - name: Use Go uses: https://github.com/actions/setup-go@v6 with: go-version: '1.24' - run: go version - run: ls -lha - run: go build -v ./... publish: needs: build runs-on: ubuntu-latest if: gitea.ref == 'refs/heads/main' steps: - uses: https://github.com/actions/checkout@v6 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 with: buildkitd-config-inline: | [registry."git.hnrx.net"] username = "${{ secrets.DOCKER_USERNAME }}" password = "${{ secrets.DOCKER_PASSWORD }}" - name: Build and Push Docker Image uses: docker/build-push-action@v5 with: context: . push: true tags: git.hnrx.net/homelab/manage-servers:latest file: ./Dockerfile