mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 12:38:50 +02:00
fix(ci): rollback to docker config instead of docker_v2
This commit is contained in:
@@ -65,25 +65,34 @@ sboms:
|
|||||||
- artifacts: archive
|
- artifacts: archive
|
||||||
- id: source # Two different sbom configurations need two different IDs
|
- id: source # Two different sbom configurations need two different IDs
|
||||||
artifacts: source
|
artifacts: source
|
||||||
# create docker images
|
# create a docker image
|
||||||
# https://goreleaser.com/customization/docker
|
# https://goreleaser.com/customization/docker
|
||||||
dockers_v2:
|
dockers:
|
||||||
- images:
|
- image_templates:
|
||||||
- "ghcr.io/belphemur/cbzoptimizer"
|
- "ghcr.io/belphemur/cbzoptimizer:latest-amd64"
|
||||||
tags:
|
- "ghcr.io/belphemur/cbzoptimizer:{{ .Version }}-amd64"
|
||||||
- "{{ .Version }}"
|
use: buildx
|
||||||
- "latest"
|
build_flag_templates:
|
||||||
platforms:
|
- "--pull"
|
||||||
- "linux/amd64"
|
- "--platform=linux/amd64"
|
||||||
- "linux/arm64"
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
labels:
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
"org.opencontainers.image.created": "{{.Date}}"
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
"org.opencontainers.image.name": "{{.ProjectName}}"
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||||
"org.opencontainers.image.revision": "{{.FullCommit}}"
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
||||||
"org.opencontainers.image.version": "{{.Version}}"
|
- image_templates:
|
||||||
"org.opencontainers.image.source": "{{.GitURL}}"
|
- "ghcr.io/belphemur/cbzoptimizer:latest-arm64"
|
||||||
"org.opencontainers.image.authors": "Belphemur"
|
- "ghcr.io/belphemur/cbzoptimizer:{{ .Version }}-arm64"
|
||||||
"org.opencontainers.image.description": "CBZOptimizer is a Go-based tool designed to optimize CBZ (Comic Book Zip) and CBR (Comic Book RAR) files by converting images to a specified format and quality. This tool is useful for reducing the size of comic book archives while maintaining acceptable image quality."
|
use: buildx
|
||||||
|
goarch: arm64
|
||||||
|
build_flag_templates:
|
||||||
|
- "--pull"
|
||||||
|
- "--platform=linux/arm64"
|
||||||
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||||
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
||||||
# signs the checksum file
|
# signs the checksum file
|
||||||
# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
|
# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
|
||||||
# https://goreleaser.com/customization/sign
|
# https://goreleaser.com/customization/sign
|
||||||
@@ -106,8 +115,18 @@ docker_signs:
|
|||||||
- cmd: cosign
|
- cmd: cosign
|
||||||
env:
|
env:
|
||||||
- COSIGN_EXPERIMENTAL=1
|
- COSIGN_EXPERIMENTAL=1
|
||||||
|
artifacts: images
|
||||||
output: true
|
output: true
|
||||||
args:
|
args:
|
||||||
- "sign"
|
- "sign"
|
||||||
- "${artifact}"
|
- "${artifact}"
|
||||||
- "--yes" # needed on cosign 2.0.0+
|
- "--yes" # needed on cosign 2.0.0+
|
||||||
|
docker_manifests:
|
||||||
|
- name_template: "ghcr.io/belphemur/cbzoptimizer:{{ .Version }}"
|
||||||
|
image_templates:
|
||||||
|
- "ghcr.io/belphemur/cbzoptimizer:{{ .Version }}-amd64"
|
||||||
|
- "ghcr.io/belphemur/cbzoptimizer:{{ .Version }}-arm64"
|
||||||
|
- name_template: "ghcr.io/belphemur/cbzoptimizer:latest"
|
||||||
|
image_templates:
|
||||||
|
- "ghcr.io/belphemur/cbzoptimizer:latest-amd64"
|
||||||
|
- "ghcr.io/belphemur/cbzoptimizer:latest-arm64"
|
||||||
|
Reference in New Issue
Block a user