This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
magnetico-go-migrator/.gitlab-ci.yml

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-*-*