Skip to content

Commit

Permalink
ci: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 14, 2025
1 parent c82a652 commit bb4fe2d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -52,7 +55,7 @@ release:
<a href="https://goreleser.com"><img src="https://raw.githubusercontent.com/goreleaser/artwork/master/opencollective-header.png" with="100%" alt="GoReleaser logo"></a>
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:
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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

Expand All @@ -144,8 +146,6 @@ sboms:
# https://goreleaser.com/customization/docker_sign
docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: images
output: true
args:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion windows.dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit bb4fe2d

Please sign in to comment.