2019-10-02 22:19:02 +00:00
|
|
|
image: "golang:1-alpine"
|
2019-10-02 22:13:42 +00:00
|
|
|
|
2019-10-02 22:50:30 +00:00
|
|
|
before_script:
|
|
|
|
# Disabling cgo to not install gcc
|
|
|
|
- export CGO_ENABLED=0
|
|
|
|
|
|
|
|
build_linux_amd64:
|
2019-10-02 22:13:42 +00:00
|
|
|
script:
|
2019-10-02 22:50:30 +00:00
|
|
|
- GOOS=linux GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
2019-10-02 22:13:42 +00:00
|
|
|
- ./magnetico-go-migrator --help
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- magnetico-go-migrator
|
2019-10-02 22:50:30 +00:00
|
|
|
|
|
|
|
build_windows_amd64:
|
|
|
|
script:
|
|
|
|
- GOOS=windows GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
|
|
|
|
|
|
|
build_darwin_amd64:
|
|
|
|
script:
|
|
|
|
- GOOS=darwin GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|