|
| 1 | +project_name: infraspec |
| 2 | + |
| 3 | +version: 2 |
| 4 | + |
| 5 | +release: |
| 6 | + github: |
| 7 | + owner: robmorgan |
| 8 | + name: infraspec |
| 9 | + draft: false |
| 10 | + prerelease: false |
| 11 | + |
| 12 | +builds: |
| 13 | + - id: infraspec |
| 14 | + main: ./cmd/infraspec/main.go |
| 15 | + binary: infraspec |
| 16 | + goos: |
| 17 | + - linux |
| 18 | + - darwin |
| 19 | + - windows |
| 20 | + goarch: |
| 21 | + - amd64 |
| 22 | + - arm64 |
| 23 | + ldflags: |
| 24 | + - -s -w -X github.com/robmorgan/infraspec/internal/build.Version={{.Version}} |
| 25 | + - -X github.com/robmorgan/infraspec/internal/build.Commit={{.Commit}} |
| 26 | + - -X github.com/robmorgan/infraspec/internal/build.Date={{.Date}} |
| 27 | + env: |
| 28 | + - CGO_ENABLED=0 |
| 29 | + |
| 30 | +notarize: |
| 31 | + macos: |
| 32 | + - enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}' |
| 33 | + sign: |
| 34 | + certificate: "{{.Env.MACOS_SIGN_P12}}" |
| 35 | + password: "{{.Env.MACOS_SIGN_PASSWORD}}" |
| 36 | + #entitlements: ./resources/entitlements.mac.plist |
| 37 | + notarize: |
| 38 | + issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}" |
| 39 | + key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}" |
| 40 | + key: "{{.Env.MACOS_NOTARY_KEY}}" |
| 41 | + wait: true |
| 42 | + timeout: 30m |
| 43 | + |
| 44 | +archives: |
| 45 | + - id: archive |
| 46 | + ids: |
| 47 | + - infraspec |
| 48 | + files: |
| 49 | + - LICENSE |
| 50 | + - README.md |
| 51 | + name_template: >- |
| 52 | + {{ .ProjectName }}-webapp-{{- .Os }}-{{ .Arch }} |
| 53 | + formats: ["tar.gz"] |
| 54 | + format_overrides: |
| 55 | + - goos: windows |
| 56 | + formats: |
| 57 | + - zip |
| 58 | + |
| 59 | +checksum: |
| 60 | + name_template: "checksums.txt" |
| 61 | + |
| 62 | +changelog: |
| 63 | + use: github |
| 64 | + |
| 65 | +homebrew_casks: |
| 66 | + - name: infraspec |
| 67 | + ids: |
| 68 | + - archive |
| 69 | + binary: infraspec |
| 70 | + url: |
| 71 | + template: "https://github.com/robmorgan/infraspec/releases/download/{{ .Tag }}/{{ .ArtifactName }}" |
| 72 | + verified: "github.com/robmorgan/infraspec/" |
| 73 | + using: ":homebrew_curl" |
| 74 | + cookies: |
| 75 | + license: "accept-backup" |
| 76 | + referer: "https://infraspec.sh/download/" |
| 77 | + headers: |
| 78 | + - "X-Version: {{ .Version }}" |
| 79 | + user_agent: "InfraSpec/{{ .Version }} ({{ .Os }}/{{ .Arch }})" |
| 80 | + commit_author: |
| 81 | + name: goreleaserbot |
| 82 | + |
| 83 | + commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}" |
| 84 | + directory: Casks |
| 85 | + caveats: "How to use this binary" |
| 86 | + homepage: "https://infraspec.sh/" |
| 87 | + description: "Test your cloud infrastructure in plain English, no code required." |
| 88 | + skip_upload: true |
| 89 | + repository: |
| 90 | + owner: robmorgan |
| 91 | + name: homebrew-infraspec |
| 92 | + branch: main |
| 93 | + #token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}" |
| 94 | + |
| 95 | +announce: |
| 96 | + slack: |
| 97 | + enabled: true |
| 98 | + message_template: ":tada: infraspec {{.Tag}} is now available!!!! :tada:" |
| 99 | + channel: "#infraspec" |
| 100 | + username: "infraspecbot" |
0 commit comments