Skip to content

Commit

Permalink
chore: attempt to fix ko package name
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Penner <[email protected]>
  • Loading branch information
matthewpi committed May 20, 2024
1 parent d655762 commit 2dc0e0e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ metadata:
report_sizes: true

builds:
- binary: caddy-gateway
- id: gateway
binary: caddy-gateway
env:
- CGO_ENABLED=0
goos:
Expand All @@ -24,21 +25,21 @@ builds:
- -trimpath

kos:
- repository: ghcr.io/caddyserver/gateway
- build: gateway
repository: ghcr.io/caddyserver/gateway
platforms:
- linux/amd64
- linux/arm64
tags:
- '{{.Version}}'
- '{{.Tag}}'
# TODO: find a way to set the latest package tag, only when the release gets published on GitHub.
# we can trigger an action on release_published, but we then need to write a system that "pushes"
# the `latest` manifest.
# - latest
- '{{ if not .Prerelease }}latest{{ end }}'
creation_time: '{{.CommitTimestamp}}'
ko_data_creation_time: '{{.CommitTimestamp}}'
sbom: 'spdx'
bare: true
base_import_paths: true
preserve_import_paths: false

checksum:
Expand Down

0 comments on commit 2dc0e0e

Please sign in to comment.