From 1d1a7de31457b0f2974090101cb793ee78eeb9b7 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Sat, 26 Feb 2022 07:30:38 -0500 Subject: [PATCH] Fix goreleaser generated config path (#852) Signed-off-by: Alex Goodman --- .goreleaser/Makefile | 2 +- goreleaser.yaml | 96 -------------------------------------------- 2 files changed, 1 insertion(+), 97 deletions(-) delete mode 100644 goreleaser.yaml diff --git a/.goreleaser/Makefile b/.goreleaser/Makefile index 31bdfe8c5..94702aebc 100644 --- a/.goreleaser/Makefile +++ b/.goreleaser/Makefile @@ -1,4 +1,4 @@ -TARGET=../goreleaser.yaml +TARGET=../.goreleaser.yaml .PHONY: snapshot-config snapshot-config: diff --git a/goreleaser.yaml b/goreleaser.yaml deleted file mode 100644 index d889016e4..000000000 --- a/goreleaser.yaml +++ /dev/null @@ -1,96 +0,0 @@ -dist: snapshot - -env: - # required to support multi architecture docker builds - - DOCKER_CLI_EXPERIMENTAL=enabled -release: - prerelease: auto - draft: true - -before: - hooks: - - ./.github/scripts/apple-signing/setup.sh {{ .IsSnapshot }} - -builds: - - id: linux-build - binary: syft - goos: - - linux - goarch: - - amd64 - - arm64 - # set the modified timestamp on the output binary to the git timestamp to ensure a reproducible build - mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}' - env: &build-env - - CGO_ENABLED=0 - ldflags: &build-ldflags | - -w - -s - -extldflags '-static' - -X github.com/anchore/syft/internal/version.version={{.Version}} - -X github.com/anchore/syft/internal/version.gitCommit={{.Commit}} - -X github.com/anchore/syft/internal/version.buildDate={{.Date}} - -X github.com/anchore/syft/internal/version.gitDescription={{.Summary}} - - - id: darwin-build - binary: syft - goos: - - darwin - goarch: - - amd64 - - arm64 - mod_timestamp: *build-timestamp - env: *build-env - ldflags: *build-ldflags - hooks: - post: - # we must have signing as a build hook instead of the signs section. The signs section must register a new - # asset, where we want to replace an existing asset. A post-build hook has the advantage of not needing to - # unpackage and repackage a tar.gz with a signed binary - - ./.github/scripts/apple-signing/sign.sh "{{ .Path }}" "{{ .IsSnapshot }}" "{{ .Target }}" - - - id: windows-build - binary: syft - goos: - - windows - goarch: - - amd64 - mod_timestamp: *build-timestamp - env: *build-env - ldflags: *build-ldflags - -archives: - - id: linux-archives - builds: - - linux-build - - # note: the signing process is depending on tar.gz archives. If this format changes then .github/scripts/apple-signing/*.sh will need to be adjusted - - id: darwin-archives - builds: - - darwin-build - - - id: windows-archives - format: zip - builds: - - windows-build - -nfpms: - - license: "Apache 2.0" - maintainer: "Anchore, Inc" - homepage: &website "https://github.com/anchore/syft" - description: &description "A tool that generates a Software Bill Of Materials (SBOM) from container images and filesystems" - formats: - - rpm - - deb - -brews: - - tap: - owner: anchore - name: homebrew-syft - ids: - - darwin-archives - - linux-archives - homepage: *website - description: *description - license: "Apache License 2.0" -