|
| 1 | +project_name: checkrr |
| 2 | +before: |
| 3 | + hooks: |
| 4 | + # You may remove this if you don't use go modules. |
| 5 | + - go mod tidy |
| 6 | + - docker pull alpine:latest |
| 7 | + - cd webserver && yarn build && cd .. |
| 8 | +builds: |
| 9 | + - env: |
| 10 | + - CGO_ENABLED=0 |
| 11 | + ldflags: |
| 12 | + - -s -w |
| 13 | + - -X main.version={{.Version}} |
| 14 | + - -X main.commit={{.Commit}} |
| 15 | + - -X main.date={{.Date}} |
| 16 | + - -X main.builtBy=goreleaser |
| 17 | + tags: |
| 18 | + - osusergo |
| 19 | + - netgo |
| 20 | + goos: |
| 21 | + - linux |
| 22 | + - windows |
| 23 | + - darwin |
| 24 | + - freebsd |
| 25 | + goarch: |
| 26 | + - amd64 |
| 27 | + - arm64 |
| 28 | + - arm |
| 29 | + goarm: |
| 30 | + - "6" |
| 31 | + - "7" |
| 32 | +archives: |
| 33 | + - replacements: |
| 34 | + darwin: macOS |
| 35 | + linux: Linux |
| 36 | + windows: Windows |
| 37 | + freebsd: FreeBSD |
| 38 | + 386: i386 |
| 39 | + amd64: x86_64 |
| 40 | +checksum: |
| 41 | + name_template: 'checksums.txt' |
| 42 | +snapshot: |
| 43 | + name_template: "{{ incpatch .Version }}-next" |
| 44 | +changelog: |
| 45 | + sort: asc |
| 46 | + filters: |
| 47 | + exclude: |
| 48 | + - '^docs:' |
| 49 | + - '^test:' |
| 50 | +release: |
| 51 | + github: |
| 52 | + owner: aetaric |
| 53 | + name: "{{.ProjectName}}" |
| 54 | + draft: true |
| 55 | + prerelease: auto |
| 56 | + mode: append |
| 57 | + name_template: "{{.ProjectName}}-v{{.Version}}" |
| 58 | + disable: false |
| 59 | +dockers: |
| 60 | +- image_templates: |
| 61 | + - "aetaric/{{.ProjectName}}:latest-amd64" |
| 62 | + - "aetaric/{{.ProjectName}}:{{ .Version }}-amd64" |
| 63 | + - "ghcr.io/aetaric/{{.ProjectName}}:latest-amd64" |
| 64 | + - "ghcr.io/aetaric/{{.ProjectName}}:{{ .Version }}-amd64" |
| 65 | + use: docker |
| 66 | + dockerfile: Dockerfile |
| 67 | + skip_push: "false" |
| 68 | + build_flag_templates: |
| 69 | + - "--platform=linux/amd64" |
| 70 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 71 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 72 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 73 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 74 | + - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 75 | + - --label=org.opencontainers.image.url=https://github.com/aetaric/{{ .ProjectName }} |
| 76 | + - --label=org.opencontainers.image.source=https://github.com/aetaric/{{ .ProjectName }} |
| 77 | + - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 78 | + - --label=org.opencontainers.image.licenses=MIT |
| 79 | +- image_templates: |
| 80 | + - "aetaric/{{.ProjectName}}:latest-arm64v8" |
| 81 | + - "aetaric/{{.ProjectName}}:{{ .Version }}-arm64v8" |
| 82 | + - "ghcr.io/aetaric/{{.ProjectName}}:latest-arm64v8" |
| 83 | + - "ghcr.io/aetaric/{{.ProjectName}}:{{ .Version }}-arm64v8" |
| 84 | + use: buildx |
| 85 | + goarch: arm64 |
| 86 | + dockerfile: Dockerfile |
| 87 | + skip_push: "false" |
| 88 | + build_flag_templates: |
| 89 | + - "--platform=linux/arm64/v8" |
| 90 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 91 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 92 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 93 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 94 | + - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 95 | + - --label=org.opencontainers.image.url=https://github.com/aetaric/{{ .ProjectName }} |
| 96 | + - --label=org.opencontainers.image.source=https://github.com/aetaric/{{ .ProjectName }} |
| 97 | + - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 98 | + - --label=org.opencontainers.image.licenses=MIT |
| 99 | +- image_templates: |
| 100 | + - "aetaric/{{.ProjectName}}:latest-armv6" |
| 101 | + - "aetaric/{{.ProjectName}}:{{ .Version }}-armv6" |
| 102 | + - "ghcr.io/aetaric/{{.ProjectName}}:latest-armv6" |
| 103 | + - "ghcr.io/aetaric/{{.ProjectName}}:{{ .Version }}-armv6" |
| 104 | + use: buildx |
| 105 | + goarch: arm |
| 106 | + goarm: "6" |
| 107 | + dockerfile: Dockerfile |
| 108 | + skip_push: "false" |
| 109 | + build_flag_templates: |
| 110 | + - "--platform=linux/arm/v6" |
| 111 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 112 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 113 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 114 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 115 | + - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 116 | + - --label=org.opencontainers.image.url=https://github.com/aetaric/{{ .ProjectName }} |
| 117 | + - --label=org.opencontainers.image.source=https://github.com/aetaric/{{ .ProjectName }} |
| 118 | + - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 119 | + - --label=org.opencontainers.image.licenses=MIT |
| 120 | +- image_templates: |
| 121 | + - "aetaric/{{.ProjectName}}:latest-armv7" |
| 122 | + - "aetaric/{{.ProjectName}}:{{ .Version }}-armv7" |
| 123 | + - "ghcr.io/aetaric/{{.ProjectName}}:latest-armv7" |
| 124 | + - "ghcr.io/aetaric/{{.ProjectName}}:{{ .Version }}-armv7" |
| 125 | + use: buildx |
| 126 | + goarch: arm |
| 127 | + goarm: "7" |
| 128 | + dockerfile: Dockerfile |
| 129 | + skip_push: "false" |
| 130 | + build_flag_templates: |
| 131 | + - "--platform=linux/arm/v7" |
| 132 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 133 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 134 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 135 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 136 | + - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 137 | + - --label=org.opencontainers.image.url=https://github.com/aetaric/{{ .ProjectName }} |
| 138 | + - --label=org.opencontainers.image.source=https://github.com/aetaric/{{ .ProjectName }} |
| 139 | + - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 140 | + - --label=org.opencontainers.image.licenses=MIT |
| 141 | +docker_manifests: |
| 142 | +- name_template: aetaric/{{.ProjectName}}:{{ .Version }} |
| 143 | + skip_push: "false" |
| 144 | + image_templates: |
| 145 | + - aetaric/{{.ProjectName}}:{{ .Version }}-amd64 |
| 146 | + - aetaric/{{.ProjectName}}:{{ .Version }}-arm64v8 |
| 147 | + - aetaric/{{.ProjectName}}:{{ .Version }}-armv6 |
| 148 | + - aetaric/{{.ProjectName}}:{{ .Version }}-armv7 |
| 149 | +- name_template: aetaric/{{.ProjectName}}:latest |
| 150 | + skip_push: "false" |
| 151 | + image_templates: |
| 152 | + - aetaric/{{.ProjectName}}:latest-amd64 |
| 153 | + - aetaric/{{.ProjectName}}:latest-arm64v8 |
| 154 | + - aetaric/{{.ProjectName}}:latest-armv6 |
| 155 | + - aetaric/{{.ProjectName}}:latest-armv7 |
| 156 | + |
0 commit comments