-
Notifications
You must be signed in to change notification settings - Fork 2
/
grml.yaml
40 lines (38 loc) · 1.26 KB
/
grml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 1
project: grml
env:
VERSION: 1.0.0
BINDIR: ${ROOT}/bin
commands:
build:
help: build the prebuild binaries
deps:
- build.linux-amd64
- build.win-amd64
commands:
linux-amd64:
help: build for linux-amd64
exec: |
mkdir -p "${BINDIR}"
docker run \
--rm \
-v "$ROOT":/work \
-w /work \
-e CGO_ENABLED=0 \
-e GOOS=linux \
-e GOARCH=amd64 \
golang:alpine \
go build -o bin/grml-${VERSION}-lin-amd64 -ldflags="-s -w"
win-amd64:
help: build for win-amd64
exec: |
mkdir -p "${BINDIR}"
docker run \
--rm \
-v "$ROOT":/work \
-w /work \
-e CGO_ENABLED=0 \
-e GOOS=windows \
-e GOARCH=amd64 \
golang:alpine \
go build -o bin/grml-${VERSION}-win-amd64.exe -ldflags="-s -w"