.goreleaser.yml
.goreleaser.ymlBrowse 1970 files
825 tokens
2,783 bytes
Token encoding: o200k_base
Snapshot 21a254f
← Back to SKILL.md
1# run automatically when a tag is created by the release.yml workflow2version: 23 4# TODO replace with a `go mod tidy -check` when go is upgraded5before:6 hooks:7 - go mod tidy8 9builds:10 - id: cli11 main: ./cmd/cli12 binary: railpack13 env:14 - CGO_ENABLED=015 goos:16 - linux17 - windows18 - darwin19 goarch:20 - amd6421 - arm6422 ldflags:23 - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}}24 25archives:26 - formats: [tar.gz]27 name_template: >-28 {{ .ProjectName }}-v{{ .Version }}-29 {{- if and (eq .Arch "amd64") (eq .Os "darwin") }}x86_64-apple-darwin30 {{- else if and (eq .Arch "arm64") (eq .Os "darwin") }}arm64-apple-darwin31 {{- else if and (eq .Arch "amd64") (eq .Os "linux") }}x86_64-unknown-linux-musl32 {{- else if and (eq .Arch "arm64") (eq .Os "linux") }}arm64-unknown-linux-musl33 {{- else if and (eq .Arch "amd64") (eq .Os "windows") }}x86_64-pc-windows-msvc34 {{- else if and (eq .Arch "arm64") (eq .Os "windows") }}arm64-pc-windows-msvc35 {{- else }}{{ .Arch }}-{{ .Os }}{{ end }}36 format_overrides:37 - goos: windows38 formats: [zip]39 40# build a multi-arch railpack frontend image to be used by buildkit to convert a repo (and any railpack.json) into docker llb41# the railpack build and runtime images are created separately. This image bundles the freshly compiled railpack binary42# which is why we build the images here instead of GHA.43dockers:44 - image_templates:45 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:{{ .Tag }}-amd64"46 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:latest-amd64"47 use: buildx48 build_flag_templates:49 - "--pull"50 - "--platform=linux/amd64"51 dockerfile: images/alpine/frontend/goreleaser.Dockerfile52 - image_templates:53 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:{{ .Tag }}-arm64"54 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:latest-arm64"55 use: buildx56 build_flag_templates:57 - "--pull"58 - "--platform=linux/arm64"59 goarch: arm6460 dockerfile: images/alpine/frontend/goreleaser.Dockerfile61 62docker_manifests:63 - name_template: "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:{{ .Tag }}"64 image_templates:65 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:{{ .Tag }}-amd64"66 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:{{ .Tag }}-arm64"67 - name_template: "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:latest"68 image_templates:69 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:latest-amd64"70 - "{{ .Env.PRODUCTION_FRONTEND_IMAGE_NAME }}:latest-arm64"71 72changelog:73 use: github-native74 75checksum:76 name_template: 'checksums.txt'77 78release:79 prerelease: auto80 name_template: "{{.ProjectName}} v{{.Version}}"81 include_meta: true