mirror of
https://github.com/MizuchiLabs/mantrae.git
synced 2025-12-16 20:05:17 -06:00
update readme
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,6 +1,6 @@
|
||||
BIN=mantrae
|
||||
|
||||
VERSION=$(shell git describe --tags)
|
||||
VERSION=$(shell git describe --tags --abbrev=0)
|
||||
DATE=$(shell date -u +%Y-%m-%d)
|
||||
COMMIT=$(shell git rev-parse --short HEAD)
|
||||
|
||||
@@ -27,6 +27,7 @@ audit:
|
||||
build:
|
||||
cd web && pnpm install && pnpm run build
|
||||
go build $(LDFLAGS) -o $(BIN) main.go
|
||||
upx $(BIN)
|
||||
|
||||
.PHONY: docker
|
||||
docker: build
|
||||
@@ -38,10 +39,14 @@ docker: build
|
||||
--label "org.opencontainers.image.version=${VERSION}" \
|
||||
--label "org.opencontainers.image.revision=${COMMIT}" \
|
||||
--label "org.opencontainers.image.created=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')" \
|
||||
--label "org.opencontainers.image.licenses=Apache-2.0" \
|
||||
--label "org.opencontainers.image.licenses=MIT" \
|
||||
-t ghcr.io/mizuchilabs/mantrae:${VERSION} .
|
||||
docker tag ghcr.io/mizuchilabs/mantrae:${VERSION} ghcr.io/mizuchilabs/mantrae:latest
|
||||
|
||||
docker-push:
|
||||
docker push ghcr.io/mizuchilabs/mantrae:${VERSION}
|
||||
docker push ghcr.io/mizuchilabs/mantrae:latest
|
||||
|
||||
.PHONY: upgrade
|
||||
upgrade:
|
||||
go get -u && go mod tidy
|
||||
|
||||
@@ -90,7 +90,7 @@ Contributions are welcome! Please feel free to submit issues, fork the repositor
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
|
||||
Reference in New Issue
Block a user