diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4422dd4..7a8c031 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,9 +2,12 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json # vim: set ts=2 sw=2 tw=0 fo=cnqoj # -# This is an example-real .goreleaser.yml file with some sensible defaults. +# This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com version: 2 + +project_name: example + before: hooks: - go mod tidy @@ -52,7 +55,7 @@ release: GoReleaser logo Find example-reals and commented usage of all options in our [website](https://goreleaser.com/intro/). - Want to help? You can [sponsor](https://goreleaser.com/sponsors/),get a [Pro License](https://goreleaser.com/pro) or [contribute](https://goreleaser.com/contributing). + Want to help? You can [sponsor](https://goreleaser.com/sponsors/), get a [Pro License](https://goreleaser.com/pro) or [contribute](https://goreleaser.com/contributing). Also, feel free to reach out on [Discord](https://discord.gg/RGEBtg8vQ6) and [Twitter](https://twitter.com/goreleaser)! nightly: @@ -63,7 +66,7 @@ nightly: dockers: - image_templates: - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-amd64" + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-amd64" build_flag_templates: - "--pull" - "--label=org.opencontainers.image.description=Just an example-real" @@ -75,7 +78,7 @@ dockers: - "--platform=linux/amd64" use: buildx - image_templates: - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-arm64" + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-arm64" build_flag_templates: - "--pull" - "--label=org.opencontainers.image.description=Just an example-real" @@ -87,7 +90,7 @@ dockers: - "--platform=linux/arm64" use: buildx # - image_templates: -# - 'ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-windows-amd64' +# - 'ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-windows-amd64' # build_flag_templates: # - "--pull" # - "--label=org.opencontainers.image.description=Just an example-real" @@ -101,30 +104,29 @@ dockers: # dockerfile: windows.dockerfile docker_manifests: - - name_template: "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}" + - name_template: "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}" image_templates: - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-amd64" - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-arm64" - # - 'ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-windows-amd64' - - name_template: "{{ if not .IsNightly }}ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:latest{{ end }}" + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-amd64" + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-arm64" + # - 'ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-windows-amd64' + - name_template: "{{ if not .IsNightly }}ghcr.io/goreleaser/example-split-merge-real:latest{{ end }}" image_templates: - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-amd64" - - "ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-arm64" - # - 'ghcr.io/caarlos0/goreleaser-pro-split-merge-example-real:v{{ .Version }}-windows-amd64' + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-amd64" + - "ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-arm64" + # - 'ghcr.io/goreleaser/example-split-merge-real:v{{ .Version }}-windows-amd64' # 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 # https://goreleaser.com/customization/sign signs: - cmd: cosign - env: - - COSIGN_EXPERIMENTAL=1 certificate: "${artifact}.pem" args: - sign-blob - "--output-certificate=${certificate}" - "--output-signature=${signature}" - "${artifact}" + - "--yes" artifacts: checksum output: true @@ -144,8 +146,6 @@ sboms: # https://goreleaser.com/customization/docker_sign docker_signs: - cmd: cosign - env: - - COSIGN_EXPERIMENTAL=1 artifacts: images output: true args: diff --git a/Dockerfile b/Dockerfile index 4b565f2..179f91e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM alpine -COPY goreleaser-pro-split-merge-example-real /usr/bin/example +COPY example /usr/bin/example ENTRYPOINT ["/usr/bin/example"] diff --git a/windows.dockerfile b/windows.dockerfile index d3357bb..cd272d3 100644 --- a/windows.dockerfile +++ b/windows.dockerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 WORKDIR /app -COPY goreleaser-pro-split-merge-example-real.exe example.exe +COPY example.exe . ENTRYPOINT ["/app/example.exe"]