Build chrly statically to work with Alpine image

This commit is contained in:
ErickSkrauch 2018-02-17 01:14:43 +03:00
parent d7bc77e5a7
commit ded50df8b8
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -30,7 +30,7 @@ jobs:
env GOOS=linux GOARCH=amd64
go build
-o release/chrly
-ldflags "-X github.com/elyby/chrly/bootstrap.version=$APP_VERSION"
-ldflags '-extldflags "-static" -X github.com/elyby/chrly/bootstrap.version=$APP_VERSION'
main.go
- docker build -t elyby/chrly:$DOCKER_TAG .
- docker push elyby/chrly:$DOCKER_TAG