1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-22 21:35:44 -05:00
mumble-discord-bridge/Makefile

49 lines
2.0 KiB
Makefile
Raw Normal View History

GOFILES=$(shell find ./ -type f -name '*.go')
2021-12-15 00:55:21 -05:00
LATEST_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`)
2020-10-29 02:21:07 -04:00
mumble-discord-bridge: $(GOFILES) .goreleaser.yml
2021-12-15 00:07:04 -05:00
goreleaser build --skip-validate --rm-dist --single-target --auto-snapshot
release:
2021-12-15 00:55:21 -05:00
rm -rf LICENSES.zip LICENSES
go-licenses save ./cmd/mumble-discord-bridge --save_path="./LICENSES"
zip -r -9 LICENSES.zip ./LICENSES
2021-12-15 00:07:04 -05:00
goreleaser release --rm-dist
2021-01-09 18:18:31 -05:00
dev: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge
dev-race: $(GOFILES) .goreleaser.yml
go run -race ./cmd/mumble-discord-bridge
dev-profile: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge -cpuprofile cpu.prof
2021-01-16 14:06:58 -05:00
2021-04-18 00:30:27 -04:00
test-chart: SHELL:=/bin/bash
test-chart:
go test ./test &
until pidof test.test; do continue; done;
2021-04-18 17:17:16 -04:00
psrecord --plot docs/test-cpu-memory.png $$(pidof mumble-discord-bridge.test)
2021-04-18 00:30:27 -04:00
docker-latest:
2021-12-15 00:55:21 -05:00
docker build -t stieneee/mumble-discord-bridge:latest -t stieneee/mumble-discord-bridge:$(LATEST_TAG) -t ghcr.io/stieneee/mumble-discord-bridge:latest -t ghcr.io/stieneee/mumble-discord-bridge:$(LATEST_TAG) .
2021-01-17 22:41:42 -05:00
docker-latest-run:
docker run --env-file .env -it stieneee/mumble-discord-bridge:latest
2021-12-15 00:55:21 -05:00
docker-release:
docker push stieneee/mumble-discord-bridge:latest
docker push stieneee/mumble-discord-bridge:$(LATEST_TAG)
docker push ghcr.io/stieneee/mumble-discord-bridge:latest
docker push ghcr.io/stieneee/mumble-discord-bridge:$(LATEST_TAG)
2021-01-17 22:41:42 -05:00
docker-next:
2021-12-15 00:55:21 -05:00
docker build -t stieneee/mumble-discord-bridge:next -t ghcr.io/stieneee/mumble-discord-bridge:next .
2021-01-17 22:41:42 -05:00
docker push stieneee/mumble-discord-bridge:next
2021-12-15 00:55:21 -05:00
docker push ghcr.io/stieneee/mumble-discord-bridge:next
clean:
2021-12-15 00:55:21 -05:00
rm -rf dist
rm -rf LICENSES.zip LICENSES
2021-12-15 00:55:21 -05:00
.PHONY: release dev dev-profile dev-race test-chart docker-latest docker-latest-release docker-release docker-next clean