mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
restore the checksum file during release
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
fde37b4b56
commit
7e270bf76c
@ -57,6 +57,13 @@ archives:
|
|||||||
- syft-macos
|
- syft-macos
|
||||||
|
|
||||||
signs:
|
signs:
|
||||||
|
- artifacts: checksum
|
||||||
|
cmd: sh
|
||||||
|
args:
|
||||||
|
- '-c'
|
||||||
|
# we should not include the zip artifact, as the artifact is mutated throughout the next macOS notarization step
|
||||||
|
# note: sed -i is not portable
|
||||||
|
- 'sed "/.*\.zip/d" ${artifact} > tmpfile && mv tmpfile ${artifact} && gpg --output ${signature} --detach-sign ${artifact}'
|
||||||
- id: syft-macos-signing
|
- id: syft-macos-signing
|
||||||
ids:
|
ids:
|
||||||
- syft-macos
|
- syft-macos
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -272,10 +272,10 @@ release: clean-dist ci-bootstrap-mac changelog-release ## Build and publish fina
|
|||||||
echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml
|
echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml
|
||||||
cat .goreleaser.yaml >> $(TEMPDIR)/goreleaser.yaml
|
cat .goreleaser.yaml >> $(TEMPDIR)/goreleaser.yaml
|
||||||
|
|
||||||
# release
|
# release (note the version transformation from v0.7.0 --> 0.7.0)
|
||||||
bash -c "\
|
bash -c "\
|
||||||
BUILD_GIT_TREE_STATE=$(GITTREESTATE) \
|
BUILD_GIT_TREE_STATE=$(GITTREESTATE) \
|
||||||
VERSION=$(VERSION) \
|
VERSION=$(VERSION:v%=%) \
|
||||||
$(TEMPDIR)/goreleaser \
|
$(TEMPDIR)/goreleaser \
|
||||||
--rm-dist \
|
--rm-dist \
|
||||||
--config $(TEMPDIR)/goreleaser.yaml \
|
--config $(TEMPDIR)/goreleaser.yaml \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user