Skip to content

Commit

Permalink
more releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
sw360cab committed Jul 1, 2024
1 parent abedafb commit 01e3df1
Showing 1 changed file with 138 additions and 138 deletions.
276 changes: 138 additions & 138 deletions .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ builds:
- CGO_ENABLED=0
goos:
- linux
# - darwin
- darwin
goarch:
- amd64
# - arm64
# - arm
# goarm:
# - 6
# - 7
- arm64
- arm
goarm:
- 6
- 7

gomod:
proxy: true
Expand All @@ -32,136 +32,136 @@ archives:
- LICENSE
- README.md

# dockers:
# # https://goreleaser.com/customization/docker/
# - use: buildx
# dockerfile: Dockerfile.release
# goos: linux
# goarch: amd64
# image_templates:
# - "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
# - "ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64"
# build_flag_templates:
# - "--platform=linux/amd64"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# extra_files:
# - scripts
# - use: buildx
# dockerfile: Dockerfile.release
# goos: linux
# goarch: arm64
# image_templates:
# - "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
# - "ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8"
# build_flag_templates:
# - "--platform=linux/arm64/v8"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# extra_files:
# - scripts
# - use: buildx
# dockerfile: Dockerfile.release
# goos: linux
# goarch: arm
# goarm: 6
# image_templates:
# - "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
# - "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6"
# build_flag_templates:
# - "--platform=linux/arm/v6"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# extra_files:
# - scripts
# - use: buildx
# dockerfile: Dockerfile.release
# goos: linux
# goarch: arm
# goarm: 7
# image_templates:
# - "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
# - "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7"
# build_flag_templates:
# - "--platform=linux/arm/v7"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# extra_files:
# - scripts

# signs:
# - cmd: cosign
# env:
# - COSIGN_EXPERIMENTAL=1
# certificate: '${artifact}.pem'
# args:
# - sign-blob
# - '--output-certificate=${certificate}'
# - '--output-signature=${signature}'
# - '${artifact}'
# - "--yes" # needed on cosign 2.0.0+
# artifacts: checksum
# output: true

# docker_manifests:
# # https://goreleaser.com/customization/docker_manifest/
# - name_template: ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}
# image_templates:
# - ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64
# - ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8
# - ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6
# - ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7
# - name_template: ghcr.io/gnolang/{{ .ProjectName }}:latest
# image_templates:
# - ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64
# - ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8
# - ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6
# - ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7

# docker_signs:
# - cmd: cosign
# env:
# - COSIGN_EXPERIMENTAL=1
# artifacts: images
# output: true
# args:
# - 'sign'
# - '${artifact}'
# - "--yes" # needed on cosign 2.0.0+

# checksum:
# name_template: 'checksums.txt'

# changelog:
# sort: asc

# source:
# enabled: true

# sboms:
# - artifacts: archive
# - id: source # Two different sbom configurations need two different IDs
# artifacts: source

# release:
# draft: true
# replace_existing_draft: true
# prerelease: true
# footer: |
# ### Container Images

# https://ghcr.io/gnolang/{{ .ProjectName }}:{{ .Tag }}

# For example:
# ```
# docker pull ghcr.io/gnolang/{{ .ProjectName }}:{{ .Tag }}
# ```
dockers:
# https://goreleaser.com/customization/docker/
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- scripts
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8"
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- scripts
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6"
build_flag_templates:
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- scripts
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7"
build_flag_templates:
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- scripts

signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
- "--yes" # needed on cosign 2.0.0+
artifacts: checksum
output: true

docker_manifests:
# https://goreleaser.com/customization/docker_manifest/
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7

docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: images
output: true
args:
- 'sign'
- '${artifact}'
- "--yes" # needed on cosign 2.0.0+

checksum:
name_template: 'checksums.txt'

changelog:
sort: asc

source:
enabled: true

sboms:
- artifacts: archive
- id: source # Two different sbom configurations need two different IDs
artifacts: source

release:
draft: true
replace_existing_draft: true
prerelease: true
footer: |
### Container Images
https://ghcr.io/gnolang/{{ .ProjectName }}:{{ .Tag }}
For example:
```
docker pull ghcr.io/gnolang/{{ .ProjectName }}:{{ .Tag }}
```

0 comments on commit 01e3df1

Please sign in to comment.