name: Go on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: token: ${{ secrets.GH_PAT }} fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - name: Update service run: go get git.kumo.work/shama/service - name: Build run: GOPROXY=https://goproxy.cn GOSUMDB=off CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --tags netgo -ldflags '-w -s' -o bin/server client/rpc/main.go - name: Log in to Docker uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a with: registry: hub.kumo.work username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile push: true tags: hub.kumo.work/erp/ik3cloud:latest - name: webhook 101.34.58.98:9000 run: curl -X POST http://101.34.58.98:9000/api/webhooks/6975b2a4-f99b-4862-8292-91744a3790ea