forked from pulumi/pulumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
65 lines (60 loc) · 1.49 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
dist: goreleaser
project_name: pulumi
builds:
- &pulumibin
id: pulumi
binary: pulumi
dir: pkg
main: ./cmd/pulumi
gobinary: ../scripts/go-wrapper.sh
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos: ['linux', 'darwin', 'windows']
goarch: ['amd64', 'arm64']
goamd64: ['v1']
ldflags:
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{.Tag}}
mod_timestamp: '{{ .CommitTimestamp }}'
- <<: *pulumibin
id: pulumi-language-go
binary: pulumi-language-go
dir: sdk
main: ./go/pulumi-language-go
- <<: *pulumibin
id: pulumi-language-nodejs
binary: pulumi-language-nodejs
dir: sdk
main: ./nodejs/cmd/pulumi-language-nodejs
- <<: *pulumibin
id: pulumi-language-python
binary: pulumi-language-python
dir: sdk
main: ./python/cmd/pulumi-language-python
- <<: *pulumibin
id: pulumi-language-dotnet
binary: pulumi-language-dotnet
dir: sdk
main: ./dotnet/cmd/pulumi-language-dotnet
archives:
- id: pulumi
wrap_in_directory: pulumi{{ if eq .Os "windows" }}/bin{{ end }}
format_overrides:
- goos: windows
format: zip
replacements:
amd64: x64
files:
# OS specific scripts, not compiled
- src: bin/{{ .Os }}/*
dst: '.'
strip_parent: true
# binaries
- src: bin/{{ .Os }}-{{ .Arch }}/*
dst: '.'
strip_parent: true
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
snapshot:
name_template: "{{ .Version }}-SNAPSHOT"
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"