magnetico-go-migrator/.gitlab-ci.yml

22 lines
536 B
YAML
Raw Normal View History

image: "golang:1-alpine"
before_script:
# Disabling cgo to not install gcc
- export CGO_ENABLED=0
build_linux_amd64:
script:
- GOOS=linux GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
- ./magnetico-go-migrator --help
artifacts:
paths:
- magnetico-go-migrator
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 .