forked from Whyeasy/prometheus-statuspage-pusher
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (28 loc) · 907 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
build:
go build -o prometheus-statuspage-pusher main.go
deps:
go mod verify
go mod tidy -v
tag:
git fetch --tags
git tag $(TAG)
git push origin $(TAG)
untag:
git fetch --tags
git tag -d $(TAG)
git push origin :refs/tags/$(TAG)
curl --request DELETE --header "Authorization: token ${GITHUB_TOKEN}" "https://api.github.com/repos/whyeasy/prometheus-statuspage-pusher/releases/:release_id/$(TAG)"
verify-goreleaser:
ifeq (, $(shell which goreleaser))
$(error "No goreleaser in $(PATH), consider installing it from https://goreleaser.com/install")
endif
goreleaser --version
verify-docker:
ifeq (, $(shell which docker))
$(error "No docker in $(PATH), consider installing it from https://docs.docker.com/install")
endif
docker --version
release: verify-goreleaser verify-docker
goreleaser release --rm-dist
snapshot-release: verify-goreleaser
goreleaser --snapshot --skip-publish --rm-dist