32 lines
694 B
YAML
32 lines
694 B
YAML
image: "golang:1-alpine"
|
|
|
|
before_script:
|
|
# Disabling cgo to not install gcc
|
|
- export CGO_ENABLED=0
|
|
- export GOARCH=amd64
|
|
|
|
build_linux_amd64:
|
|
script:
|
|
- export GOOS=linux
|
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
|
- ./magnetico-go-migrator-$GOOS-$GOARCH --help
|
|
artifacts:
|
|
paths:
|
|
- magnetico-go-migrator-*-*
|
|
|
|
build_windows_amd64:
|
|
script:
|
|
- export GOOS=windows
|
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
|
artifacts:
|
|
paths:
|
|
- magnetico-go-migrator-*-*
|
|
|
|
build_darwin_amd64:
|
|
script:
|
|
- export GOOS=darwin
|
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
|
artifacts:
|
|
paths:
|
|
- magnetico-go-migrator-*-*
|