|
| 1 | +project_name: github_actions_exporter |
| 2 | + |
| 3 | +env: |
| 4 | + - DOCKER_CLI_EXPERIMENTAL=enabled |
| 5 | + - COSIGN_EXPERIMENTAL=true |
| 6 | + |
| 7 | +gomod: |
| 8 | + proxy: true |
| 9 | + |
| 10 | +snapshot: |
| 11 | + name_template: '{{ .Tag }}-SNAPSHOT' |
| 12 | + |
| 13 | +builds: |
| 14 | + - binary: github-actions-exporter |
| 15 | + goos: |
| 16 | + - linux |
| 17 | + - darwin |
| 18 | + goarch: |
| 19 | + - amd64 |
| 20 | + - arm64 |
| 21 | + - arm |
| 22 | + - s390x |
| 23 | + - ppc64le |
| 24 | + goarm: |
| 25 | + - 7 |
| 26 | + ldflags: | |
| 27 | + -X github.com/prometheus/common/version.Version={{.Version}} |
| 28 | + -X github.com/prometheus/common/version.Revision={{.Commit}} |
| 29 | + -X github.com/prometheus/common/version.Branch={{.Branch}} |
| 30 | + -X github.com/prometheus/common/version.BuildUser=cpanato |
| 31 | + -X github.com/prometheus/common/version.BuildDate={{.Date}} |
| 32 | +
|
| 33 | +archives: |
| 34 | + - format: binary |
| 35 | + allow_different_binary_count: true |
| 36 | + |
| 37 | +checksum: |
| 38 | + name_template: checksums.txt |
| 39 | + |
| 40 | +signs: |
| 41 | + - signature: "${artifact}.sig" |
| 42 | + certificate: "${artifact}.pem" |
| 43 | + cmd: cosign |
| 44 | + args: ["sign-blob", "--output-signature", "${artifact}.sig", "--output-certificate", "${artifact}.pem", "${artifact}"] |
| 45 | + artifacts: binary |
| 46 | + |
| 47 | +dockers: |
| 48 | + - image_templates: |
| 49 | + - "ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-amd64" |
| 50 | + use: buildx |
| 51 | + dockerfile: Dockerfile |
| 52 | + build_flag_templates: |
| 53 | + - "--platform=linux/amd64" |
| 54 | + - --label=org.opencontainers.image.version={{ .Version }} |
| 55 | + - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 56 | + - --label=org.opencontainers.image.source=https://github.com/cpanato/{{ .ProjectName }} |
| 57 | + - image_templates: |
| 58 | + - "ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-arm64" |
| 59 | + use: buildx |
| 60 | + goarch: arm64 |
| 61 | + dockerfile: Dockerfile |
| 62 | + build_flag_templates: |
| 63 | + - "--platform=linux/arm64" |
| 64 | + - --label=org.opencontainers.image.version={{ .Version }} |
| 65 | + - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 66 | + - --label=org.opencontainers.image.source=https://github.com/cpanato/{{ .ProjectName }} |
| 67 | + - image_templates: |
| 68 | + - "ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-arm" |
| 69 | + use: buildx |
| 70 | + goarch: arm |
| 71 | + goarm: 7 |
| 72 | + dockerfile: Dockerfile |
| 73 | + build_flag_templates: |
| 74 | + - "--platform=linux/arm/v7" |
| 75 | + - --label=org.opencontainers.image.version={{ .Version }} |
| 76 | + - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 77 | + - --label=org.opencontainers.image.source=https://github.com/cpanato/{{ .ProjectName }} |
| 78 | + - image_templates: |
| 79 | + - "ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-s390x" |
| 80 | + use: buildx |
| 81 | + goarch: s390x |
| 82 | + dockerfile: Dockerfile |
| 83 | + build_flag_templates: |
| 84 | + - "--platform=linux/s390x" |
| 85 | + - --label=org.opencontainers.image.version={{ .Version }} |
| 86 | + - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 87 | + - --label=org.opencontainers.image.source=https://github.com/cpanato/{{ .ProjectName }} |
| 88 | + - image_templates: |
| 89 | + - "ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-ppc64le" |
| 90 | + use: buildx |
| 91 | + goarch: ppc64le |
| 92 | + dockerfile: Dockerfile |
| 93 | + build_flag_templates: |
| 94 | + - "--platform=linux/ppc64le" |
| 95 | + - --label=org.opencontainers.image.version={{ .Version }} |
| 96 | + - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 97 | + - --label=org.opencontainers.image.source=https://github.com/cpanato/{{ .ProjectName }} |
| 98 | + |
| 99 | +docker_manifests: |
| 100 | + - name_template: ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }} |
| 101 | + image_templates: |
| 102 | + - ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-amd64 |
| 103 | + - ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-arm64 |
| 104 | + - ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-arm |
| 105 | + - ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-s390x |
| 106 | + - ghcr.io/cpanato/{{ .ProjectName }}:{{ .Version }}-ppc64le |
| 107 | + |
| 108 | +docker_signs: |
| 109 | + - artifacts: all |
| 110 | + args: [ "sign", "${artifact}" ] |
| 111 | + |
| 112 | +release: |
| 113 | + github: |
| 114 | + owner: cpanato |
| 115 | + name: github_actions_exporter |
| 116 | + draft: false |
| 117 | + prerelease: true |
0 commit comments