AnthoLume/Makefile

28 lines
838 B
Makefile
Raw Normal View History

build_local:
go mod download
rm -r ./build
mkdir -p ./build
cp -a ./templates ./build/templates
cp -a ./assets ./build/assets
env GOOS=linux GOARCH=amd64 go build -o ./build/server_linux_amd64
env GOOS=linux GOARCH=arm64 go build -o ./build/server_linux_arm64
env GOOS=darwin GOARCH=arm64 go build -o ./build/server_darwin_arm64
env GOOS=darwin GOARCH=amd64 go build -o ./build/server_darwin_amd64
2023-09-18 23:57:18 +00:00
docker_build_local:
docker build -t bookmanager:latest .
2023-09-18 23:57:18 +00:00
2023-09-26 23:44:20 +00:00
docker_build_release_dev:
2023-09-18 23:57:18 +00:00
docker buildx build \
--platform linux/amd64,linux/arm64 \
2023-09-26 23:44:20 +00:00
-t gitea.va.reichard.io/evan/bookmanager:dev \
--push .
2023-09-18 23:57:18 +00:00
docker_build_release_latest:
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t gitea.va.reichard.io/evan/bookmanager:latest \
2023-09-26 23:44:20 +00:00
-t gitea.va.reichard.io/evan/bookmanager:`git describe --tags` \
--push .