Skip to content

Commit ff448b2

Browse files
committed
Add docker and brew
1 parent 668a0ac commit ff448b2

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.goreleaser.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
builds:
22
- id: default
33
main: ./cmd/koyeb
4+
binary: koyeb
45
env:
56
- CGO_ENABLED=0
67
goos:
@@ -17,6 +18,7 @@ builds:
1718
- -X github.com/koyeb/koyeb-cli/pkg/koyeb.Commit={{ .ShortCommit }}
1819
- id: windows
1920
main: ./cmd/koyeb
21+
binary: koyeb
2022
env:
2123
- CGO_ENABLED=0
2224
goos:
@@ -28,3 +30,45 @@ builds:
2830
- -X github.com/koyeb/koyeb-cli/pkg/koyeb.BuildDate={{ .Date }}
2931
- -X github.com/koyeb/koyeb-cli/pkg/koyeb.Version={{ .Version }}
3032
- -X github.com/koyeb/koyeb-cli/pkg/koyeb.Commit={{ .ShortCommit }}
33+
34+
archives:
35+
- id: windows
36+
builds:
37+
- windows
38+
wrap_in_directory: false
39+
format: zip
40+
- id: default
41+
builds:
42+
- default
43+
files: [only-the-binary*]
44+
wrap_in_directory: false
45+
format: tar.gz
46+
47+
release:
48+
prerelease: auto
49+
50+
dockers:
51+
- goos: linux
52+
goarch: amd64
53+
image_templates:
54+
- "koyeb/koyeb-cli:latest"
55+
- "koyeb/koyeb-cli:v{{ .Version }}"
56+
skip_push: auto
57+
58+
checksum:
59+
name_template: "checksums.txt"
60+
61+
snapshot:
62+
name_template: "{{.Branch}}-{{.ShortCommit}}"
63+
64+
brews:
65+
- tap:
66+
owner: koyeb
67+
name: homebrew-tap
68+
folder: Formula
69+
homepage: https://koyeb.com
70+
skip_upload: auto
71+
test: |
72+
system "#{bin}/koyeb version"
73+
install: |
74+
bin.install "koyeb"

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM golang:alpine as build
2+
RUN apk --no-cache add ca-certificates
3+
4+
FROM scratch
5+
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
6+
COPY koyeb /
7+
ENTRYPOINT ["/koyeb"]

0 commit comments

Comments
 (0)