update readme

This commit is contained in:
d34dscene
2024-08-22 12:48:37 +02:00
parent 6ca3fb9256
commit 1317987ac6
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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