|
| 1 | +project_name: helm-changelog |
| 2 | + |
| 3 | +builds: |
| 4 | + - binary: helm-changelog |
| 5 | + main: ./ |
| 6 | + |
| 7 | + env: |
| 8 | + - CGO_ENABLED=0 |
| 9 | + flags: |
| 10 | + - -trimpath |
| 11 | + ldflags: |
| 12 | + - -s -w -X main.version={{.Version}} |
| 13 | + |
| 14 | + goos: |
| 15 | + - windows |
| 16 | + - darwin |
| 17 | + - linux |
| 18 | + goarch: |
| 19 | + - amd64 |
| 20 | + - arm64 |
| 21 | + |
| 22 | +changelog: |
| 23 | + sort: asc |
| 24 | + filters: |
| 25 | + exclude: |
| 26 | + - '^docs:' |
| 27 | + - '^doc:' |
| 28 | + - '^chore:' |
| 29 | + - '^test:' |
| 30 | + - '^tests:' |
| 31 | + |
| 32 | +archives: |
| 33 | + - id: helm-changelog |
| 34 | + name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' |
| 35 | + format: tar.gz |
| 36 | + format_overrides: |
| 37 | + - goos: windows |
| 38 | + format: zip |
| 39 | + files: |
| 40 | + - LICENSE |
| 41 | + |
| 42 | +docker_manifests: |
| 43 | + - name_template: 'ghcr.io/traefik/helm-changelog:{{ .Tag }}' |
| 44 | + image_templates: |
| 45 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64' |
| 46 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64' |
| 47 | + - name_template: 'ghcr.io/traefik/helm-changelog:latest' |
| 48 | + image_templates: |
| 49 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64' |
| 50 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64' |
| 51 | + - name_template: 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}' |
| 52 | + image_templates: |
| 53 | + - 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-amd64' |
| 54 | + - 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-arm64' |
| 55 | + |
| 56 | +dockers: |
| 57 | + - use: buildx |
| 58 | + goos: linux |
| 59 | + goarch: amd64 |
| 60 | + dockerfile: buildx.Dockerfile |
| 61 | + image_templates: |
| 62 | + - 'ghcr.io/traefik/helm-changelog:latest-amd64' |
| 63 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64' |
| 64 | + - 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-amd64' |
| 65 | + build_flag_templates: |
| 66 | + - '--pull' |
| 67 | + # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys |
| 68 | + - '--label=org.opencontainers.image.title={{.ProjectName}}' |
| 69 | + - '--label=org.opencontainers.image.description=Myrmica Bibikoffi - Closes stale issues' |
| 70 | + - '--label=org.opencontainers.image.source={{.GitURL}}' |
| 71 | + - '--label=org.opencontainers.image.url={{.GitURL}}' |
| 72 | + - '--label=org.opencontainers.image.documentation={{.GitURL}}' |
| 73 | + - '--label=org.opencontainers.image.created={{.Date}}' |
| 74 | + - '--label=org.opencontainers.image.revision={{.FullCommit}}' |
| 75 | + - '--label=org.opencontainers.image.version={{.Version}}' |
| 76 | + - '--platform=linux/amd64' |
| 77 | + |
| 78 | + - use: buildx |
| 79 | + goos: linux |
| 80 | + goarch: arm64 |
| 81 | + dockerfile: buildx.Dockerfile |
| 82 | + image_templates: |
| 83 | + - 'ghcr.io/traefik/helm-changelog:latest-arm64' |
| 84 | + - 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64' |
| 85 | + - 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-arm64' |
| 86 | + build_flag_templates: |
| 87 | + - '--pull' |
| 88 | + # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys |
| 89 | + - '--label=org.opencontainers.image.title={{.ProjectName}}' |
| 90 | + - '--label=org.opencontainers.image.description=Myrmica Bibikoffi - Closes stale issues' |
| 91 | + - '--label=org.opencontainers.image.source={{.GitURL}}' |
| 92 | + - '--label=org.opencontainers.image.url={{.GitURL}}' |
| 93 | + - '--label=org.opencontainers.image.documentation={{.GitURL}}' |
| 94 | + - '--label=org.opencontainers.image.created={{.Date}}' |
| 95 | + - '--label=org.opencontainers.image.revision={{.FullCommit}}' |
| 96 | + - '--label=org.opencontainers.image.version={{.Version}}' |
| 97 | + - '--platform=linux/arm64' |
0 commit comments