Skip to content

Commit dda8cc9

Browse files
committed
Add S3 as output to goreleaser config
1 parent 5b97aae commit dda8cc9

File tree

1 file changed

+78
-8
lines changed

1 file changed

+78
-8
lines changed

.goreleaser.yaml

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,94 @@ archives:
2929
{{- if .Arm }}v{{ .Arm }}{{ end }}
3030
# use zip for windows archives
3131
format_overrides:
32-
- goos: windows
33-
format: zip
32+
- goos: windows
33+
format: zip
3434
checksum:
35-
name_template: 'checksums.txt'
35+
name_template: "checksums.txt"
3636
snapshot:
3737
name_template: "{{ incpatch .Version }}-next"
3838
changelog:
3939
sort: asc
4040
filters:
4141
exclude:
42-
- '^docs:'
43-
- '^test:'
42+
- "^docs:"
43+
- "^test:"
4444
project_name: lekko
4545
# .goreleaser.yaml
46+
blobs:
47+
# You can have multiple blob configs
48+
- # Cloud provider name:
49+
# - s3 for AWS S3 Storage
50+
# - azblob for Azure Blob Storage
51+
# - gs for Google Cloud Storage
52+
#
53+
# Templates: allowed
54+
provider: s3
55+
56+
# Set a custom endpoint, useful if you're using a minio backend or
57+
# other s3-compatible backends.
58+
#
59+
# Implies s3ForcePathStyle and requires provider to be `s3`
60+
#
61+
# Templates: allowed
62+
# endpoint: https://minio.foo.bar
63+
64+
# Sets the bucket region.
65+
# Requires provider to be `s3`
66+
#
67+
# Templates: allowed
68+
region: us-east-1
69+
70+
# Disables SSL
71+
# Requires provider to be `s3`
72+
# disableSSL: true
73+
74+
# Bucket name.
75+
#
76+
# Templates: allowed
77+
bucket: "cli-releases"
78+
79+
# IDs of the artifacts you want to upload.
80+
# ids:
81+
# - foo
82+
# - bar
83+
84+
# Path/name inside the bucket.
85+
#
86+
# Default: '{{ .ProjectName }}/{{ .Tag }}'
87+
# Templates: allowed
88+
folder: "{{ .Tag }}"
89+
90+
# Whether to disable this particular upload configuration.
91+
#
92+
# Since: v1.17
93+
# Templates: allowed
94+
# disable: '{{ neq .BLOB_UPLOAD_ONLY "foo" }}'
95+
96+
# You can add extra pre-existing files to the bucket.
97+
# The filename on the release will be the last part of the path (base).
98+
# If another file with the same name exists, the last one found will be used.
99+
# These globs can also include templates.
100+
# extra_files:
101+
# - glob: ./path/to/file.txt
102+
# - glob: ./glob/**/to/**/file/**/*
103+
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
104+
# - glob: ./single_file.txt
105+
# # Templates: allowed
106+
# name_template: file.txt # note that this only works if glob matches 1 file only
107+
108+
# Additional templated extra files to uploaded.
109+
# Those files will have their contents pass through the template engine,
110+
# and its results will be uploaded.
111+
#
112+
# Since: v1.17 (pro)
113+
# This feature is only available in GoReleaser Pro.
114+
# Templates: allowed
115+
# templated_extra_files:
116+
# - src: LICENSE.tpl
117+
# dst: LICENSE.txt
46118
brews:
47-
-
48-
# Name template of the recipe
119+
- # Name template of the recipe
49120
# Default to project name
50121
# name: myproject
51122

@@ -190,7 +261,6 @@ brews:
190261
# etc.install "app-config.conf"
191262
# ...
192263

193-
194264
# The lines beneath this are called `modelines`. See `:help modeline`
195265
# Feel free to remove those if you don't want/use them.
196266
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

0 commit comments

Comments
 (0)