Created
December 6, 2023 16:28
-
-
Save marshallformula/68e5f7f1fecc0d1edc4fcd172a8255b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BINARY_NAME=s3proxy | |
.PHONY: run | |
run: build | |
bin/$(BINARY_NAME) | |
.PHONY: build | |
build: | |
go build -o bin/$(BINARY_NAME) -v ./cmd/s3-proxy/main.go | |
.PHONY: build_all | |
build_linux: | |
export GOOS=linux; export GOARCH=amd64; go build -o bin/$(BINARY_NAME)-linux-amd64 -v ./cmd/s3-proxy/main.go | |
.PHONY: dev | |
dev: clean | |
@echo "Running docker-compose in dev mode" | |
docker-compose -f compose.yaml -f compose.dev.yaml up -d | |
.PHONY: clean | |
clean: | |
rm -rf bin/$(BINARY_NAME)* | |
.PHONY: test | |
test: | |
go test ./internal... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment