|
| 1 | +version: 2 |
| 2 | + |
| 3 | +before: |
| 4 | + hooks: |
| 5 | + - go mod tidy |
| 6 | + - go generate ./... |
| 7 | + |
| 8 | +project_name: outpost |
| 9 | + |
| 10 | +builds: |
| 11 | + - id: outpost |
| 12 | + ldflags: |
| 13 | + - -s -w |
| 14 | + binary: outpost |
| 15 | + env: |
| 16 | + - CGO_ENABLED=0 |
| 17 | + main: ./cmd/outpost/main.go |
| 18 | + goos: |
| 19 | + - linux |
| 20 | + goarch: |
| 21 | + - amd64 |
| 22 | + - id: outpost-arm64 |
| 23 | + ldflags: |
| 24 | + - -s -w |
| 25 | + binary: outpost |
| 26 | + env: |
| 27 | + - CGO_ENABLED=0 |
| 28 | + main: ./cmd/outpost/main.go |
| 29 | + goos: |
| 30 | + - linux |
| 31 | + goarch: |
| 32 | + - arm64 |
| 33 | + |
| 34 | +archives: |
| 35 | + - format: tar.gz |
| 36 | + # this name template makes the OS and Arch compatible with the results of `uname`. |
| 37 | + name_template: >- |
| 38 | + {{ .ProjectName }}_ |
| 39 | + {{- title .Os }}_ |
| 40 | + {{- if eq .Arch "amd64" }}x86_64 |
| 41 | + {{- else if eq .Arch "386" }}i386 |
| 42 | + {{- else }}{{ .Arch }}{{ end }} |
| 43 | + {{- if .Arm }}v{{ .Arm }}{{ end }} |
| 44 | + # use zip for windows archives |
| 45 | + format_overrides: |
| 46 | + - goos: windows |
| 47 | + format: zip |
| 48 | + |
| 49 | +changelog: |
| 50 | + sort: asc |
| 51 | + filters: |
| 52 | + exclude: |
| 53 | + - "^docs:" |
| 54 | + - "^test:" |
| 55 | + |
| 56 | +dockers: |
| 57 | + - goos: linux |
| 58 | + goarch: amd64 |
| 59 | + dockerfile: ./build/Dockerfile.goreleaser |
| 60 | + ids: |
| 61 | + - outpost |
| 62 | + image_templates: |
| 63 | + - "hookdeck/outpost:latest-amd64" |
| 64 | + - "hookdeck/outpost:{{ .Tag }}-amd64" |
| 65 | + build_flag_templates: |
| 66 | + - "--pull" |
| 67 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 68 | + - "--label=org.opencontainers.image.name={{.ProjectName}}" |
| 69 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 70 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 71 | + - "--label=repository=https://github.com/hookdeck/outpost" |
| 72 | + - "--label=homepage=https://hookdeck.com" |
| 73 | + - "--platform=linux/amd64" |
| 74 | + - goos: linux |
| 75 | + goarch: arm64 |
| 76 | + dockerfile: ./build/Dockerfile.goreleaser |
| 77 | + ids: |
| 78 | + - outpost-arm64 |
| 79 | + image_templates: |
| 80 | + - "hookdeck/outpost:latest-arm64" |
| 81 | + - "hookdeck/outpost:{{ .Tag }}-arm64" |
| 82 | + build_flag_templates: |
| 83 | + - "--pull" |
| 84 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 85 | + - "--label=org.opencontainers.image.name={{.ProjectName}}" |
| 86 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 87 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 88 | + - "--label=repository=https://github.com/hookdeck/outpost" |
| 89 | + - "--label=homepage=https://hookdeck.com" |
| 90 | + - "--platform=linux/arm64/v8" |
| 91 | +docker_manifests: |
| 92 | + - name_template: "hookdeck/outpost:latest" |
| 93 | + image_templates: |
| 94 | + - "hookdeck/outpost:latest-amd64" |
| 95 | + - "hookdeck/outpost:latest-arm64" |
| 96 | + - name_template: "hookdeck/outpost:{{ .Tag }}" |
| 97 | + image_templates: |
| 98 | + - "hookdeck/outpost:{{ .Tag }}-amd64" |
| 99 | + - "hookdeck/outpost:{{ .Tag }}-arm64" |
0 commit comments