forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
80 lines (74 loc) · 2.76 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
includes:
- from_file:
path: ./.goreleaser.common.yml
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
files:
- LICENSE
format_overrides:
- goos: windows
format: zip
# https://goreleaser.com/customization/homebrew/
brews:
- repository:
owner: "{{ .Env.GH_ORG_NAME }}"
name: homebrew-tap
name: dagger
commit_author:
name: dagger-bot
email: [email protected]
url_template: "https://{{ .Env.ARTEFACTS_FQDN }}/dagger/releases/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://dagger.io"
description: "Dagger is an integrated platform to orchestrate the delivery of applications"
test: |
system "#{bin}/dagger version"
# https://goreleaser.com/customization/nix/
nix:
- name: dagger
repository:
owner: "{{ .Env.GH_ORG_NAME }}"
name: nix
commit_author:
name: dagger-bot
email: [email protected]
url_template: "https://{{ .Env.ARTEFACTS_FQDN }}/dagger/releases/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://dagger.io"
description: "Dagger is an integrated platform to orchestrate the delivery of applications"
license: "asl20"
post_install: |
installShellCompletion --cmd dagger \
--bash <($out/bin/dagger completion bash) \
--fish <($out/bin/dagger completion fish) \
--zsh <($out/bin/dagger completion zsh)
blobs:
- provider: s3
region: "{{ .Env.AWS_REGION }}"
bucket: "{{ .Env.AWS_BUCKET }}"
folder: "dagger/releases/{{ .Version }}"
publishers:
- name: publish-latest-version
cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://{{ .Env.AWS_BUCKET }}/dagger/latest_version"
env:
- PATH={{ .Env.PATH }}
- AWS_EC2_METADATA_DISABLED=true
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION={{ .Env.AWS_REGION }}
- name: publish-latest
cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://{{ .Env.AWS_BUCKET }}/dagger/versions/latest"
env:
- PATH={{ .Env.PATH }}
- AWS_EC2_METADATA_DISABLED=true
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION={{ .Env.AWS_REGION }}
- name: publish-latest-major-minor
cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://{{ .Env.AWS_BUCKET }}/dagger/versions/{{ .Major }}.{{ .Minor }}"
env:
- PATH={{ .Env.PATH }}
- AWS_EC2_METADATA_DISABLED=true
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION={{ .Env.AWS_REGION }}