Skip to content

Commit

Permalink
use previous version that works
Browse files Browse the repository at this point in the history
use dist

use new flags
  • Loading branch information
v1v committed Apr 18, 2024
1 parent c6cfdd6 commit d5ea5ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: anchore/sbom-action/[email protected]

- name: Snapshot
run: make snapshot
run: make dist

- name: generate build provenance (binaries)
uses: github-early-access/generate-build-provenance@main
Expand Down
5 changes: 0 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,3 @@ publishers:
release:
# Custom GitHub release
disable: true

# creates SBOMs of all archives and the source tarball using syft
# https://goreleaser.com/customization/sbom
sboms:
- artifacts: archive
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL = /bin/bash -eo pipefail

GORELEASER_VERSION = "v1.25.1"
GORELEASER_VERSION = "v1.18.0"
GO_LICENSER_VERSION = "v0.4.0"
GOLANGCI_LINT_VERSION = "v1.54.2"
export DOCKER_IMAGE_NAME = observability/apm-lambda-extension
Expand All @@ -10,23 +10,20 @@ clean:
@rm -rf dist/
@docker image ls "$(DOCKER_REGISTRY)/$(DOCKER_IMAGE_NAME)*" -aq | xargs -I {} docker rmi --force {} || true

.PHONY: dist
dist:
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --rm-dist
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --clean

.PHONY: zip
zip:
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --rm-dist --skip-docker
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --clean --skip-docker

build:
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) build --snapshot --rm-dist

.PHONY: snapshot
snapshot:
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --skip=publish --snapshot --clean
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) build --snapshot --clean

.PHONY: release
release:
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --rm-dist
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --clean

.PHONY: release-notes
release-notes:
Expand Down

0 comments on commit d5ea5ff

Please sign in to comment.