mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-13 21:07:22 +00:00
Update list and get commands to use better choosing strategy;
refactor Makefile to use go mod vendoring and docker caching
This commit is contained in:
parent
b2a41cf07c
commit
383a3aa1cd
9 changed files with 193 additions and 224 deletions
13
Makefile
13
Makefile
|
|
@ -1,15 +1,14 @@
|
|||
.PHONY: all build clean format test gen-certs-go
|
||||
|
||||
build: clean format
|
||||
env CGO_ENABLED=0 go build -o ./bin/server ./cmd/server
|
||||
build: clean gen-certs-go format
|
||||
go build -mod=vendor -o ./bin/server ./cmd/server
|
||||
rm ./cmd/server/certs.go
|
||||
|
||||
clean:
|
||||
rm -rf ./bin
|
||||
go mod tidy
|
||||
|
||||
docker: gen-certs-go
|
||||
docker: install
|
||||
docker-compose build
|
||||
rm ./cmd/server/certs.go
|
||||
|
||||
local:
|
||||
docker-compose up -d
|
||||
|
|
@ -39,6 +38,10 @@ machine-rm:
|
|||
format:
|
||||
gofmt -w -s -l .
|
||||
|
||||
install:
|
||||
go mod tidy
|
||||
go mod vendor
|
||||
|
||||
install-spc:
|
||||
go install ./cmd/spc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue