|
| 1 | +version: 2 |
| 2 | +project_name: distributarepo |
| 3 | + |
| 4 | +builds: |
| 5 | + - binary: distributarepo |
| 6 | + env: |
| 7 | + - CGO_ENABLED=0 |
| 8 | + flags: |
| 9 | + - -trimpath |
| 10 | + ldflags: |
| 11 | + - -s -w -X main.version={{.Version}} |
| 12 | + |
| 13 | + goos: |
| 14 | + - windows |
| 15 | + - darwin |
| 16 | + - linux |
| 17 | + - freebsd |
| 18 | + - openbsd |
| 19 | + goarch: |
| 20 | + - amd64 |
| 21 | + - arm |
| 22 | + - arm64 |
| 23 | + goarm: |
| 24 | + - 7 |
| 25 | + - 6 |
| 26 | + - 5 |
| 27 | + ignore: |
| 28 | + - goos: darwin |
| 29 | + goarch: 386 |
| 30 | + - goos: openbsd |
| 31 | + goarch: arm |
| 32 | + |
| 33 | +changelog: |
| 34 | + sort: asc |
| 35 | + filters: |
| 36 | + exclude: |
| 37 | + - '(?i)^chore:' |
| 38 | + |
| 39 | +archives: |
| 40 | + - id: distributarepo |
| 41 | + name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}' |
| 42 | + format: tar.gz |
| 43 | + format_overrides: |
| 44 | + - goos: windows |
| 45 | + format: zip |
| 46 | + files: |
| 47 | + - LICENSE |
| 48 | + |
| 49 | +brews: |
| 50 | + - repository: |
| 51 | + owner: ldez |
| 52 | + name: homebrew-tap |
| 53 | + commit_author: |
| 54 | + name: ldez |
| 55 | + |
| 56 | + directory: Formula |
| 57 | + homepage: https://github.com/ldez/distributarepo |
| 58 | + description: Helper to get an overview of the forks of a GitHub repository |
| 59 | + test: | |
| 60 | + system "#{bin}/distributarepo -v" |
| 61 | +
|
| 62 | +scoops: |
| 63 | + - repository: |
| 64 | + owner: ldez |
| 65 | + name: scoop-bucket |
| 66 | + commit_author: |
| 67 | + name: ldez |
| 68 | + |
| 69 | + homepage: https://github.com/ldez/distributarepo |
| 70 | + description: Helper to get an overview of the forks of a GitHub repository |
| 71 | + license: APACHE |
| 72 | + |
| 73 | +docker_manifests: |
| 74 | + - name_template: 'ldez/distributarepo:{{ .Tag }}' |
| 75 | + image_templates: |
| 76 | + - 'ldez/distributarepo:{{ .Tag }}-amd64' |
| 77 | + - 'ldez/distributarepo:{{ .Tag }}-arm64' |
| 78 | + - 'ldez/distributarepo:{{ .Tag }}-armv7' |
| 79 | + - name_template: 'ldez/distributarepo:latest' |
| 80 | + image_templates: |
| 81 | + - 'ldez/distributarepo:{{ .Tag }}-amd64' |
| 82 | + - 'ldez/distributarepo:{{ .Tag }}-arm64' |
| 83 | + - 'ldez/distributarepo:{{ .Tag }}-armv7' |
| 84 | + - name_template: 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}' |
| 85 | + image_templates: |
| 86 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-amd64' |
| 87 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-arm64' |
| 88 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-armv7' |
| 89 | + |
| 90 | +dockers: |
| 91 | + - use: buildx |
| 92 | + goos: linux |
| 93 | + goarch: amd64 |
| 94 | + dockerfile: buildx.Dockerfile |
| 95 | + image_templates: |
| 96 | + - 'ldez/distributarepo:latest-amd64' |
| 97 | + - 'ldez/distributarepo:{{ .Tag }}-amd64' |
| 98 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-amd64' |
| 99 | + build_flag_templates: |
| 100 | + - '--pull' |
| 101 | + # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys |
| 102 | + - '--label=org.opencontainers.image.title={{.ProjectName}}' |
| 103 | + - '--label=org.opencontainers.image.description=Helper to get an overview of the forks of a GitHub repository' |
| 104 | + - '--label=org.opencontainers.image.source={{.GitURL}}' |
| 105 | + - '--label=org.opencontainers.image.url={{.GitURL}}' |
| 106 | + - '--label=org.opencontainers.image.documentation=https://github.com/ldez/distributarepo?tab=readme-ov-file' |
| 107 | + - '--label=org.opencontainers.image.created={{.Date}}' |
| 108 | + - '--label=org.opencontainers.image.revision={{.FullCommit}}' |
| 109 | + - '--label=org.opencontainers.image.version={{.Version}}' |
| 110 | + - '--platform=linux/amd64' |
| 111 | + |
| 112 | + - use: buildx |
| 113 | + goos: linux |
| 114 | + goarch: arm64 |
| 115 | + dockerfile: buildx.Dockerfile |
| 116 | + image_templates: |
| 117 | + - 'ldez/distributarepo:latest-arm64' |
| 118 | + - 'ldez/distributarepo:{{ .Tag }}-arm64' |
| 119 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-arm64' |
| 120 | + build_flag_templates: |
| 121 | + - '--pull' |
| 122 | + # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys |
| 123 | + - '--label=org.opencontainers.image.title={{.ProjectName}}' |
| 124 | + - '--label=org.opencontainers.image.description=Helper to get an overview of the forks of a GitHub repository' |
| 125 | + - '--label=org.opencontainers.image.source={{.GitURL}}' |
| 126 | + - '--label=org.opencontainers.image.url={{.GitURL}}' |
| 127 | + - '--label=org.opencontainers.image.documentation=https://github.com/ldez/distributarepo?tab=readme-ov-file' |
| 128 | + - '--label=org.opencontainers.image.created={{.Date}}' |
| 129 | + - '--label=org.opencontainers.image.revision={{.FullCommit}}' |
| 130 | + - '--label=org.opencontainers.image.version={{.Version}}' |
| 131 | + - '--platform=linux/arm64' |
| 132 | + |
| 133 | + - use: buildx |
| 134 | + goos: linux |
| 135 | + goarch: arm |
| 136 | + goarm: '7' |
| 137 | + dockerfile: buildx.Dockerfile |
| 138 | + image_templates: |
| 139 | + - 'ldez/distributarepo:latest-armv7' |
| 140 | + - 'ldez/distributarepo:{{ .Tag }}-armv7' |
| 141 | + - 'ldez/distributarepo:v{{ .Major }}.{{ .Minor }}-armv7' |
| 142 | + build_flag_templates: |
| 143 | + - '--pull' |
| 144 | + # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys |
| 145 | + - '--label=org.opencontainers.image.title={{.ProjectName}}' |
| 146 | + - '--label=org.opencontainers.image.description=Helper to get an overview of the forks of a GitHub repository' |
| 147 | + - '--label=org.opencontainers.image.source={{.GitURL}}' |
| 148 | + - '--label=org.opencontainers.image.url={{.GitURL}}' |
| 149 | + - '--label=org.opencontainers.image.documentation=https://github.com/ldez/distributarepo?tab=readme-ov-file' |
| 150 | + - '--label=org.opencontainers.image.created={{.Date}}' |
| 151 | + - '--label=org.opencontainers.image.revision={{.FullCommit}}' |
| 152 | + - '--label=org.opencontainers.image.version={{.Version}}' |
| 153 | + - '--platform=linux/arm/v7' |
0 commit comments