monitoring task with slack bot alerting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
430B

  1. .PHONY: docker-build
  2. BOT_VERSION=latest
  3. GOARCH=amd64
  4. # GOARCH=arm
  5. GOOS=darwin
  6. # GOOS=linux
  7. build: dependencies
  8. @echo "build for os $(GOOS) and arch $(GOARCH)"
  9. go build -o bin/slackbot-$(GOOS)-$(GOARCH) cmd/main.go
  10. dependencies:
  11. go mod download
  12. go mod verify
  13. docker-build:
  14. DOCKER_BUILDKIT=1 docker build --force-rm -t docker.registry:5000/slackbot:$(BOT_VERSION) .
  15. docker push docker.registry:5000/slackbot:$(BOT_VERSION)