This repository was archived by the owner on May 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
bin
3
3
fargate
4
+ dist
Original file line number Diff line number Diff line change 1
- .PHONY : test
1
+ .PHONY : test build dist
2
2
3
3
test :
4
4
go test ./...
5
5
6
6
build :
7
+ go get github.com/spf13/cobra
8
+ go get github.com/aws/aws-sdk-go/aws
9
+ go get github.com/mgutz/ansi
10
+ go get github.com/hashicorp/golang-lru
11
+ go get golang.org/x/time/rate
12
+ go get golang.org/x/crypto/ssh/terminal
13
+
7
14
go build -o bin/fargate main.go
15
+
16
+ dist :
17
+ GOOS=darwin GOARCH=amd64 go build -o dist/build/fargate-darwin-amd64/fargate main.go
18
+ GOOS=linux GOARCH=amd64 go build -o dist/build/fargate-linux-amd64/fargate main.go
19
+ GOOS=linux GOARCH=386 go build -o dist/build/fargate-linux-386/fargate main.go
20
+ GOOS=linux GOARCH=arm go build -o dist/build/fargate-linux-arm/fargate main.go
21
+
22
+ cd dist/build/fargate-darwin-amd64 && zip fargate-${FARGATE_VERSION}-darwin-amd64.zip fargate
23
+ cd dist/build/fargate-linux-amd64 && zip fargate-${FARGATE_VERSION}-linux-amd64.zip fargate
24
+ cd dist/build/fargate-linux-386 && zip fargate-${FARGATE_VERSION}-linux-386.zip fargate
25
+ cd dist/build/fargate-linux-arm && zip fargate-${FARGATE_VERSION}-linux-arm.zip fargate
26
+
27
+ find dist/build -name *.zip -exec mv {} dist \;
28
+
29
+ rm -rf dist/build
You can’t perform that action at this time.
0 commit comments