Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
corteza
corteza-server
Commits
94b5a56c
Commit
94b5a56c
authored
5 years ago
by
Tit Petric
Browse files
Options
Download
Email Patches
Plain Diff
upd(build): clean up build step, use crust-builder
parent
507ff8ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
.drone.yml
.drone.yml
+4
-8
No files found.
.drone.yml
View file @
94b5a56c
workspace
:
base
:
/go
path
:
src/
github.com/crusttech/crust
base
:
/go
/src
path
:
github.com/crusttech/crust
kind
:
pipeline
name
:
crust
steps
:
-
name
:
build
image
:
golang:1.11-alpine
image
:
crusttech/crust-builder:latest
pull
:
always
environment
:
CGO_ENABLED
:
0
GOOS
:
linux
GOARCH
:
amd64
commands
:
-
apk add --no-cache git make
-
go fmt ./cmd/... ./internal/... ./crm/... ./messaging/... ./system/...
-
go get -u github.com/golang/mock/gomock
-
go get -u github.com/golang/mock/mockgen
-
make mocks
-
go build -ldflags "-X github.com/crusttech/crust/internal/version.BuildTime=`date +%FT%T%z` -X github.com/crusttech/crust/internal/version.Version=`git describe --always --tags`" -o build/crust-$GOOS-$GOARCH cmd/crust/*.go
-
go build -ldflags "-X github.com/crusttech/crust/internal/version.BuildTime=`date +%FT%T%z` -X github.com/crusttech/crust/internal/version.Version=`git describe --always --tags`" -o build/crm-$GOOS-$GOARCH cmd/crm/*.go
-
go build -ldflags "-X github.com/crusttech/crust/internal/version.BuildTime=`date +%FT%T%z` -X github.com/crusttech/crust/internal/version.Version=`git describe --always --tags`" -o build/messaging-$GOOS-$GOARCH cmd/messaging/*.go
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment