github.com/tilt-dev/tilt@v0.36.0/.goreleaser.yml (about) 1 version: 2 2 project_name: tilt 3 builds: 4 - main: ./cmd/tilt/main.go 5 id: tilt-darwin 6 flags: 7 - -tags=osusergo 8 - -mod=vendor 9 goos: 10 - darwin 11 goarch: 12 - amd64 13 - arm64 14 env: 15 # clang is a cross-compiler by default, so the same CC/CXX works 16 # for arm64 (M1) & amd64 (Intel) builds 17 - CGO_ENABLED=1 18 - CC=o64h-clang 19 - CXX=o64h-clang++ 20 - main: ./cmd/tilt/main.go 21 id: tilt-linux-arm64 22 flags: 23 - -tags=osusergo 24 - -mod=vendor 25 goos: 26 - linux 27 goarch: 28 - arm64 29 env: 30 - CGO_ENABLED=1 31 - CC=aarch64-linux-gnu-gcc 32 - CXX=aarch64-linux-gnu-g++ 33 - main: ./cmd/tilt/main.go 34 id: tilt-linux-musl-arm64 35 flags: 36 - -tags=osusergo 37 - -mod=vendor 38 ldflags: 39 - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser 40 - -linkmode external -extldflags "-static" 41 goos: 42 - linux 43 goarch: 44 - arm64 45 env: 46 - CGO_ENABLED=1 47 - CC=aarch64-linux-musl-gcc 48 - CXX=aarch64-linux-musl-g++ 49 - main: ./cmd/tilt/main.go 50 id: tilt-linux-arm 51 flags: 52 - -tags=osusergo 53 - -mod=vendor 54 goos: 55 - linux 56 goarch: 57 - arm 58 env: 59 - CGO_ENABLED=1 60 - CC=arm-linux-gnueabi-gcc 61 - CXX=arm-linux-gnueabi-g++ 62 - main: ./cmd/tilt/main.go 63 id: tilt-linux-amd64 64 flags: 65 - -tags=osusergo 66 - -mod=vendor 67 goos: 68 - linux 69 goarch: 70 - amd64 71 env: 72 - CGO_ENABLED=1 73 - main: ./cmd/tilt/main.go 74 id: tilt-linux-musl-amd64 75 flags: 76 - -tags=osusergo 77 - -mod=vendor 78 ldflags: 79 - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser 80 - -linkmode external -extldflags "-static" 81 goos: 82 - linux 83 goarch: 84 - amd64 85 env: 86 - CGO_ENABLED=1 87 - CC=x86_64-linux-musl-gcc 88 - CXX=x86_64-linux-musl-g++ 89 - main: ./cmd/tilt/main.go 90 id: tilt-windows-amd64 91 flags: 92 - -tags=osusergo 93 - -mod=vendor 94 goos: 95 - windows 96 goarch: 97 - amd64 98 env: 99 - CGO_ENABLED=1 100 - CGO_LDFLAGS=-static 101 - CC=x86_64-w64-mingw32-gcc 102 - CXX=x86_64-w64-mingw32-g++ 103 archives: 104 - id: default 105 name_template: >- 106 {{ .ProjectName }}.{{ .Version }}. 107 {{- if eq .Os "darwin"}}mac 108 {{- else }}{{ .Os }}{{ end }}. 109 {{- if eq .Arch "amd64" }}x86_64 110 {{- else if eq .Arch "386" }}i386 111 {{- else }}{{ .Arch }}{{ end }} 112 builds: 113 - tilt-darwin 114 - tilt-linux-amd64 115 - tilt-linux-arm64 116 - tilt-linux-arm 117 - tilt-windows-amd64 118 format_overrides: 119 - goos: windows 120 format: zip 121 - id: alpine 122 name_template: >- 123 {{ .ProjectName }}.{{ .Version }}.{{ .Os }}-alpine. 124 {{- if eq .Arch "amd64" }}x86_64 125 {{- else }}{{ .Arch }}{{ end }} 126 builds: 127 - tilt-linux-musl-amd64 128 - tilt-linux-musl-arm64 129 - id: web-assets 130 name_template: >- 131 {{ .ProjectName }}.{{ .Version }}.web-assets 132 meta: true 133 files: 134 - LICENSE 135 - pkg/assets/build/** 136 137 checksum: 138 name_template: 'checksums.txt' 139 snapshot: 140 version_template: "{{ .Tag }}-next" 141 142 changelog: 143 sort: asc 144 use: github 145 filters: 146 exclude: 147 - '^docs?:' 148 - '^tests?:' 149 - '^cleanup:' 150 - '^circleci:' 151 - '^ci:' 152 153 brews: 154 - repository: 155 owner: tilt-dev 156 name: homebrew-tap 157 commit_author: 158 name: Tilt Dev 159 email: hi@tilt.dev 160 ids: 161 - default 162 url_template: "https://github.com/tilt-dev/tilt/releases/download/{{ .Tag }}/{{ .ArtifactName }}" 163 homepage: "https://tilt.dev/" 164 description: "A dev environment as code for microservice apps" 165 install: | 166 bin.install "tilt" 167 168 # Install bash completion 169 output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash") 170 (bash_completion/"tilt").write output 171 172 # Install zsh completion 173 output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh") 174 (zsh_completion/"_tilt").write output 175 176 # Install fish completion 177 output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish") 178 (fish_completion/"tilt.fish").write output 179 test: | 180 system "#{bin}/tilt version" 181 system "#{bin}/tilt verify-install" 182 dockers: 183 - goos: linux 184 goarch: amd64 185 ids: 186 - tilt-linux-amd64 187 image_templates: 188 - "tiltdev/tilt:{{ .Tag }}-amd64" 189 - "docker/tilt:{{ .Tag }}-amd64" 190 dockerfile: scripts/tilt.Dockerfile 191 use: buildx 192 build_flag_templates: 193 - "--platform=linux/amd64" 194 - "--label=org.opencontainers.image.title={{ .ProjectName }}" 195 - "--label=org.opencontainers.image.description={{ .ProjectName }}" 196 - "--label=org.opencontainers.image.url=https://github.com/tilt-dev/{{ .ProjectName }}" 197 - "--label=org.opencontainers.image.source=https://github.com/tilt-dev/{{ .ProjectName }}" 198 - "--label=org.opencontainers.image.version={{ .Version }}" 199 - "--label=org.opencontainers.image.created={{ .Timestamp }}" 200 - "--label=org.opencontainers.image.revision={{ .FullCommit }}" 201 - "--label=org.opencontainers.image.licenses=Apache-2.0" 202 - goos: linux 203 goarch: arm64 204 goarm: '' 205 ids: 206 - tilt-linux-arm64 207 image_templates: 208 - "tiltdev/tilt:{{ .Tag }}-arm64" 209 - "docker/tilt:{{ .Tag }}-arm64" 210 dockerfile: scripts/tilt.Dockerfile 211 use: buildx 212 build_flag_templates: 213 - "--platform=linux/arm64" 214 - "--label=org.opencontainers.image.title={{ .ProjectName }}" 215 - "--label=org.opencontainers.image.description={{ .ProjectName }}" 216 - "--label=org.opencontainers.image.url=https://github.com/tilt-dev/{{ .ProjectName }}" 217 - "--label=org.opencontainers.image.source=https://github.com/tilt-dev/{{ .ProjectName }}" 218 - "--label=org.opencontainers.image.version={{ .Version }}" 219 - "--label=org.opencontainers.image.created={{ .Timestamp }}" 220 - "--label=org.opencontainers.image.revision={{ .FullCommit }}" 221 - "--label=org.opencontainers.image.licenses=Apache-2.0" 222 docker_manifests: 223 - name_template: tiltdev/{{ .ProjectName }}:{{ .Tag }} 224 image_templates: 225 - tiltdev/{{ .ProjectName }}:{{ .Tag }}-amd64 226 - tiltdev/{{ .ProjectName }}:{{ .Tag }}-arm64 227 - name_template: tiltdev/{{ .ProjectName }}:latest 228 image_templates: 229 - tiltdev/{{ .ProjectName }}:{{ .Tag }}-amd64 230 - tiltdev/{{ .ProjectName }}:{{ .Tag }}-arm64 231 - name_template: docker/{{ .ProjectName }}:{{ .Tag }} 232 image_templates: 233 - docker/{{ .ProjectName }}:{{ .Tag }}-amd64 234 - docker/{{ .ProjectName }}:{{ .Tag }}-arm64 235 - name_template: docker/{{ .ProjectName }}:latest 236 image_templates: 237 - docker/{{ .ProjectName }}:{{ .Tag }}-amd64 238 - docker/{{ .ProjectName }}:{{ .Tag }}-arm64 239 scoops: 240 - url_template: "https://github.com/tilt-dev/tilt/releases/download/{{ .Tag }}/{{ .ArtifactName }}" 241 repository: 242 owner: tilt-dev 243 name: scoop-bucket 244 commit_author: 245 name: Tilt Dev 246 email: hi@tilt.dev 247 commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" 248 homepage: "https://tilt.dev/" 249 description: "A dev environment as code for microservice apps" 250 license: Apache-2.0 251 release: 252 header: | 253 [Install Tilt](https://docs.tilt.dev/install.html) ⬇️ | [Upgrade Tilt](https://docs.tilt.dev/upgrade.html) ⬆️ | [Tilt Extensions](https://github.com/tilt-dev/tilt-extensions/) 🧰 254 255 256 # Uncomment these lines if you want to experiment with other 257 # parts of the release process without releasing new binaries. 258 # release: 259 # disable: true