Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ bin/*
.idea
.env
test.http
acca.json
acca.json
cmd/acca-api/app.yaml
cmd/acca-webhook/app.yaml
115 changes: 42 additions & 73 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ APPVERSION=${GITHASH}_${CURDATE}

build-race:
#export $(sed 's/=.*\l\r//' .env)
go build -v -race -o ./bin/acca-race ./cmd/acca/main.go
go build -v -race -o ./bin/acca-core-race ./cmd/acca-core/main.go
go build -v -race -o ./bin/acca-webhook-race ./cmd/acca-webhook/main.go
go build -v -race -o ./bin/acca-api-race ./cmd/acca-api/main.go

build-linux:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags "-X main.VERSION=${APPVERSION}" -o ./bin/acca ./cmd/acca/main.go

run: build-race
GORACE="halt_on_error=1" ./bin/acca-race
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags "-X main.VERSION=${APPVERSION}" -o ./bin/acca ./cmd/acca-core/main.go

init:
go install -v ./vendor/github.com/gogo/protobuf/protoc-gen-gogofast
Expand Down
25 changes: 25 additions & 0 deletions cmd/acca-api/.gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, build with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
Loading