Skip to content

Commit 590f024

Browse files
committed
test
1 parent 11e88f0 commit 590f024

File tree

3 files changed

+74
-45
lines changed

3 files changed

+74
-45
lines changed

.goreleaser copy.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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

.goreleaser.yaml

+16-44
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
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 ./...
101
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
2513
# - "foo/bar:{{ .Version }}-amd64"
2614
# use: buildx
2715
# dockerfile: Dockerfile
@@ -34,24 +22,8 @@ dockers:
3422
# dockerfile: Dockerfile
3523
# build_flag_templates:
3624
# - "--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
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM scratch
2-
COPY go-fileserver /app
2+
COPY mybin /app
33
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)