-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 961 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
36
37
38
build:
go build -o bin/gke-preemptible-notifier ./cmd/notifier
run: build
./bin/gke-preemptible-notifier watch
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/slamdev/gke-preemptible-notifier/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