Skip to content

Commit

Permalink
ci: triggering infra version bump (Checkmarx#4443)
Browse files Browse the repository at this point in the history
Signed-off-by: Rogério Peixoto <[email protected]>
  • Loading branch information
rogeriopeixotocx authored Oct 29, 2021
1 parent d7ce6f8 commit 2cdd3e5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,3 @@ jobs:
KICS_BOT_PAT: ${{ secrets.KICS_BOT_PAT }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DESCRIPTIONS_URL: ${{ secrets.DESCRIPTIONS_URL }}
- name: Terraform Cloud Lambda Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.KICS_BOT_PAT }}
repository: ${{ secrets.TFC_REPO_PATH }}
event-type: new-release
29 changes: 29 additions & 0 deletions .github/workflows/update-infra-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: update-infra-version

on:
workflow_dispatch:
release:
type: [published]

jobs:
update-infra-version:
name: Updates infra with new release
runs-on: ubuntu-latest
if: "!github.event.release.prerelease"
steps:
- name: Checkout project
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Update Terraform Cloud Integration
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.KICS_BOT_PAT }}
repository: ${{ secrets.TFC_REPO_PATH }}
event-type: new-release
- name: Update Infra
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.KICS_BOT_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: new-release
2 changes: 1 addition & 1 deletion docs/release_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
6. Wait for goreleaser action to complete
7. Test pre-release manually on each platform
8. Publish new version by updating changelog and removing pre-release flag
9. Check if `update-docs-release` workflow completed with success
9. Check if `update-docs-release` and `update-infra-version` workflow completed with success
10. Trigger `release-docker-image` workflow
11. Check if image is published in dockerhub / update hub documentation if changed.
12. Check for dependabots PR's in KICS' [github action](https://github.com/Checkmarx/kics-github-action), merge them and add a new tag.

0 comments on commit 2cdd3e5

Please sign in to comment.