Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use personal token for helm bumper #80

Merged
merged 3 commits into from
Oct 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Create PR using Version Bump
run: |
appVersion=${{github.event.release.tag_name}}
chartName=${{github.repository}}
chartName=nri-prometheus

curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: token ${{ secrets.VERSION_BUMP_TOKEN }}" \
--request POST \
--data '{"event_type": "bump-chart-version", "client_payload": { "chart_name": "${chartName}", "chart_version": "", "app_version": "${appVersion:1}"}}' \
https://api.github.com/repos/newrelic/helm-charts/dispatches
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,9 @@ release: release/deps
@echo "=== $(INTEGRATION) === [ release ]: Releasing new version..."
@$(GORELEASER_BIN) release
@(aws s3 sync ./target/deploy/ ${S3_BUCKET})
@$(MAKE) snyk/monitor

release/test: release/deps
@echo "=== $(INTEGRATION) === [ release/test ]: Testing releasing new version..."
@$(GORELEASER_BIN) release --snapshot --skip-publish --rm-dist

snyk: deps-only
@echo "=== $(INTEGRATION) === [ snyk ]: Running snyk..."
# @snyk test # issue with Govendor causing snyk to fail
@snyk test --docker $(IMAGE_NAME):release --file=Dockerfile.release

snyk/monitor: deps-only
@echo "=== $(INTEGRATION) === [ snyk/monitor ]: Running snyk..."
# @snyk monitor # issue with Govendor causing snyk to fail
@snyk monitor --docker $(IMAGE_NAME):release --file=Dockerfile.release

.PHONY: all build clean tools tools-update deps deps-only validate compile compile-only test check-version tools-golangci-lint docker-build release release/deps release/test snyk snyk/monitor docker-release
.PHONY: all build clean tools tools-update deps deps-only validate compile compile-only test check-version tools-golangci-lint docker-build release release/deps release/test docker-release