name: Build Backend on: push: paths: - ".github/workflows/shit-proxy.yml" pull_request: workflow_dispatch: jobs: build-backend: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: submodules: "true" - name: Set up Go uses: actions/setup-go@v5 with: go-version: "1.26.2" - name: Build run: | CGO_ENABLED=0 go build -ldflags="-w -s" -o shit-proxy - name: Log in to Docker registry uses: docker/login-action@v3 with: registry: https://docker.illegalesachen.download username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and Push uses: docker/build-push-action@v6 with: file: Dockerfile push: true tags: | docker.illegalesachen.download/shit-proxy:${{ github.sha }} docker.illegalesachen.download/shit-proxy:latest