mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
Add notifications around the release process (#184)
* add pipeline notification upon release Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add pending notification to release pipeline Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
03378e976c
commit
f4502fc824
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
@ -123,6 +123,15 @@ jobs:
|
|||||||
AWS_ACCESS_KEY_ID: ${{ secrets.TOOLBOX_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.TOOLBOX_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLBOX_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLBOX_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- uses: 8398a7/action-slack@v3
|
||||||
|
with:
|
||||||
|
status: ${{ job.status }}
|
||||||
|
fields: repo,workflow,action,eventName
|
||||||
|
text: "A new Syft release is ready to be (manually) published from the GitHub Releases page"
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
|
||||||
|
if: ${{ success() }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
|
|||||||
22
Makefile
22
Makefile
@ -226,9 +226,8 @@ acceptance-test-rpm-package-install: $(SNAPSHOTDIR)
|
|||||||
$(ACC_TEST_IMAGE) \
|
$(ACC_TEST_IMAGE) \
|
||||||
$(RESULTSDIR)
|
$(RESULTSDIR)
|
||||||
|
|
||||||
.PHONY: changlog
|
.PHONY: changlog-release
|
||||||
changelog:
|
changelog-release:
|
||||||
mkdir -p $(DISTDIR)
|
|
||||||
@docker run -it --rm \
|
@docker run -it --rm \
|
||||||
-v "$(shell pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator \
|
-v "$(shell pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator \
|
||||||
--user anchore \
|
--user anchore \
|
||||||
@ -239,8 +238,23 @@ changelog:
|
|||||||
--unreleased-only \
|
--unreleased-only \
|
||||||
--future-release $(VERSION)
|
--future-release $(VERSION)
|
||||||
|
|
||||||
|
.PHONY: changelog-unreleased
|
||||||
|
changelog-unreleased: ## show the current changelog that will be produced on the next release (note: requires GITHUB_TOKEN set)
|
||||||
|
@docker run -it --rm \
|
||||||
|
-v "$(shell pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator \
|
||||||
|
--user anchore \
|
||||||
|
--project $(BIN) \
|
||||||
|
-t ${GITHUB_TOKEN} \
|
||||||
|
--unreleased-only
|
||||||
|
@printf '\n$(BOLD)$(CYAN)Unreleased Changes (closed PRs and issues will not be in the final changelog)$(RESET)\n'
|
||||||
|
@docker run -it --rm \
|
||||||
|
-v $(shell pwd)/CHANGELOG.md:/CHANGELOG.md \
|
||||||
|
rawkode/mdv \
|
||||||
|
-t 785.3229 \
|
||||||
|
/CHANGELOG.md
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: clean-dist changelog ## Build and publish final binaries and packages
|
release: clean-dist changelog-release ## Build and publish final binaries and packages
|
||||||
$(call title,Publishing release artifacts)
|
$(call title,Publishing release artifacts)
|
||||||
# create a config with the dist dir overridden
|
# create a config with the dist dir overridden
|
||||||
echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml
|
echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user