25 lines
618 B
YAML
25 lines
618 B
YAML
steps:
|
|
build:
|
|
image: git.jmbit.de/filegate/filegate-utility:builder
|
|
environment:
|
|
# Needed if you want to cross-compile and package the binary in a container.
|
|
- CGO_ENABLED=1
|
|
# Select your target OS:
|
|
- GOOS=linux
|
|
# Select your target architecture:
|
|
- GOARCH=amd64
|
|
- GIN_MODE=release
|
|
commands:
|
|
- go get
|
|
- go mod download
|
|
- go build
|
|
test:
|
|
image: git.jmbit.de/filegate/filegate-utility:builder
|
|
environment:
|
|
- CGO_ENABLED=1
|
|
- GOOS=linux
|
|
- GIN_MODE=debug
|
|
commands:
|
|
- go get
|
|
- go mod download
|
|
- go test |