-
Notifications
You must be signed in to change notification settings - Fork 1
/
winch.yml
118 lines (113 loc) · 2.26 KB
/
winch.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: winch
description: Universal build and release tool
repository: https://github.com/winchci/winch
verbose: true
build:
command: |
export GOOS=linux
mkdir -p bin/$GOOS-$GOARCH
go build -o bin/$GOOS-$GOARCH/winch ./cmd/winch/main.go
export GOOS=darwin
mkdir -p bin/$GOOS-$GOARCH
go build -o bin/$GOOS-$GOARCH/winch ./cmd/winch/main.go
export GOOS=darwin
export GOARCH=arm64
mkdir -p bin/$GOOS-$GOARCH
go build -o bin/$GOOS-$GOARCH/winch ./cmd/winch/main.go
versions:
- file: version/*_gen.go
template: version/winch_version.tmpl
release:
branches:
only: main
artifacts:
- ./bin/darwin-amd64/
- ./bin/linux-amd64/
homebrew:
enabled: true
organization: winchci
repository: homebrew-core
asset: darwin-amd64.tgz
install: |
bin.install "winch"
test: |
system "#{bin}/winch --version"
branches:
only: main
dockers:
- dockerfile: docker/base/Dockerfile
organization: winchci
repository: winch
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/go/1.18/Dockerfile
organization: winchci
repository: golang-1.18
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/go/1.19/Dockerfile
organization: winchci
repository: golang
tag: latest
context: .
scan: false
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/node/16/Dockerfile
organization: winchci
repository: node-16
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/node/16/Dockerfile
organization: winchci
repository: node-latest
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/python/3.9/Dockerfile
organization: winchci
repository: python
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
- dockerfile: docker/helm/Dockerfile
organization: winchci
repository: helm
tag: latest
context: .
platforms:
- linux/amd64
- linux/arm64
branches:
only: main
environment:
GO111MODULE: on
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64