Skip to content

Commit

Permalink
Merge pull request #8 from natrontech/ci/fix-goreleaser
Browse files Browse the repository at this point in the history
ci: fix goreleaser & ko-publish workflow
  • Loading branch information
janfuhrer authored Jul 8, 2024
2 parents 4e1ba01 + 5e30261 commit 2e02037
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
sbom-name: alertmanager-uptime-kuma-push
sbom-repository: ghcr.io/${{ github.repository_owner }}/sbom
signature-repository: ghcr.io/${{ github.repository_owner }}/signatures
main-path: ./
main-path: ./cmd/pusher

binary-provenance:
needs: [goreleaser]
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ before:

builds:
- id: alertmanager-uptime-kuma-push
main: ./cmd/pusher
binary: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
# set for reproducible builds
mod_timestamp: '{{ .CommitTimestamp }}'
Expand Down
2 changes: 1 addition & 1 deletion .ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defaultPlatforms:
- linux/amd64
builds:
- id: alertmanager-uptime-kuma-push
main: ./cmd/pusher/pusher.go
main: ./cmd/pusher
flags:
- -tags
- netgo
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ LABELS := "--image-label=org.opencontainers.image.created=$(BUILD_DATE),$\
ko-build-local: ko
@echo Building $(NAME) $(KO_TAGS) for $(KO_PLATFORM) >&2
@LD_FLAGS=$(LD_FLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO=$(KO_REPOSITORY) \
$(KO) build ./cmd/pusher/ --bare --tags=$(KO_TAGS) $(LABELS) --push=false --local --platform=$(KO_PLATFORM) --sbom=none
$(KO) build ./cmd/pusher --bare --tags=$(KO_TAGS) $(LABELS) --push=false --local --platform=$(KO_PLATFORM) --sbom=none

# Ko publish image
.PHONY: ko-login
Expand Down

0 comments on commit 2e02037

Please sign in to comment.