File tree 3 files changed +74
-45
lines changed
3 files changed +74
-45
lines changed Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sensible defaults.
2
+ # Make sure to check the documentation at https://goreleaser.com
3
+ project_name : go-fileserver
4
+ before :
5
+ hooks :
6
+ # You may remove this if you don't use go modules.
7
+ - go mod tidy
8
+ # you may remove this if you don't need go generate
9
+ - go generate ./...
10
+ builds :
11
+ - env :
12
+ - CGO_ENABLED=0
13
+ goos :
14
+ - linux
15
+ - windows
16
+ - darwin
17
+ # goarch:
18
+ # - amd64
19
+ # - arm64
20
+ dockers :
21
+ - image_templates :
22
+ - user/repo
23
+ # dockers:
24
+ # - image_templates:
25
+ # - "foo/bar:{{ .Version }}-amd64"
26
+ # use: buildx
27
+ # dockerfile: Dockerfile
28
+ # build_flag_templates:
29
+ # - "--platform=linux/amd64"
30
+ # - image_templates:
31
+ # - "foo/bar:{{ .Version }}-arm64v8"
32
+ # use: buildx
33
+ # goarch: arm64
34
+ # dockerfile: Dockerfile
35
+ # build_flag_templates:
36
+ # - "--platform=linux/arm64/v8"
37
+ archives :
38
+ - replacements :
39
+ darwin : Darwin
40
+ linux : Linux
41
+ windows : Windows
42
+ 386 : i386
43
+ amd64 : x86_64
44
+ checksum :
45
+ name_template : ' checksums.txt'
46
+ snapshot :
47
+ name_template : " {{ incpatch .Version }}-next"
48
+ changelog :
49
+ sort : asc
50
+ filters :
51
+ exclude :
52
+ - ' ^docs:'
53
+ - ' ^test:'
54
+
55
+ # modelines, feel free to remove those if you don't want/use them:
56
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
57
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
Original file line number Diff line number Diff line change 1
- # This is an example .goreleaser.yml file with some sensible defaults.
2
- # Make sure to check the documentation at https://goreleaser.com
3
- project_name : go-fileserver
4
- before :
5
- hooks :
6
- # You may remove this if you don't use go modules.
7
- - go mod tidy
8
- # you may remove this if you don't need go generate
9
- - go generate ./...
10
1
builds :
11
- - env :
12
- - CGO_ENABLED=0
13
- goos :
14
- - linux
15
- - windows
16
- - darwin
17
- # goarch:
18
- # - amd64
19
- # - arm64
20
- dockers :
21
- - image_templates :
22
- - user/repo
23
- # dockers:
24
- # - image_templates:
2
+ - env :
3
+ - CGO_ENABLED=0
4
+ binary : mybin
5
+ goos :
6
+ - linux
7
+ goarch :
8
+ - amd64
9
+ - arm64
10
+ # dockers:
11
+ # - image_templates:
12
+ # - user/repo
25
13
# - "foo/bar:{{ .Version }}-amd64"
26
14
# use: buildx
27
15
# dockerfile: Dockerfile
@@ -34,24 +22,8 @@ dockers:
34
22
# dockerfile: Dockerfile
35
23
# build_flag_templates:
36
24
# - "--platform=linux/arm64/v8"
37
- archives :
38
- - replacements :
39
- darwin : Darwin
40
- linux : Linux
41
- windows : Windows
42
- 386 : i386
43
- amd64 : x86_64
44
- checksum :
45
- name_template : ' checksums.txt'
46
- snapshot :
47
- name_template : " {{ incpatch .Version }}-next"
48
- changelog :
49
- sort : asc
50
- filters :
51
- exclude :
52
- - ' ^docs:'
53
- - ' ^test:'
54
-
55
- # modelines, feel free to remove those if you don't want/use them:
56
- # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
57
- # vim: set ts=2 sw=2 tw=0 fo=cnqoj
25
+ # docker_manifests:
26
+ # - name_template: foo/bar:{{ .Version }}
27
+ # image_templates:
28
+ # - foo/bar:{{ .Version }}-amd64
29
+ # # - foo/bar:{{ .Version }}-arm64v8
Original file line number Diff line number Diff line change 1
1
FROM scratch
2
- COPY go-fileserver /app
2
+ COPY mybin /app
3
3
ENTRYPOINT ["/app" ]
You can’t perform that action at this time.
0 commit comments