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

Add GH action for dispatching release event #239

Open
sigalsax opened this issue Sep 30, 2020 · 1 comment
Open

Add GH action for dispatching release event #239

sigalsax opened this issue Sep 30, 2020 · 1 comment

Comments

@sigalsax
Copy link
Contributor

sigalsax commented Sep 30, 2020

As part of our Secrets Provider release flow, our helm charts are packaged as part of our pipeline build and are saved to the artifacts tab in Jenkins. We then need to manually take the artifact and create a PR in a separate repo and push the packaged Helm chart.

The act of pushing the artifact to a separate repo can be automated. In essence we want to be able to dispatch eventA from repoA (SP) in order to trigger an actionA in another repoB (helm-charts).

EventA - a release
ActionA - fetch artifacts from Jenkins build of tagged release build

More detailed explanation provided here

GIVEN I am releasing suite component A
AND the release of suite component A produces an artifact A1
AND the artifact A1 must be uploaded to suite component B on release of suite component A
THEN there are Jenkins pipeline and/or GitHub action utilities that can copy the component A pipeline-built artifact A1 to a folder on a branch of component B
AND there is a Jenkins pipeline and/or GitHub action utility to open a PR to merge the branch inc

To achieve this see the following resources:
1️⃣ https://github.community/t/triggering-by-other-repository/16163
2️⃣ https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch
3️⃣ https://github.community/t/github-workflow-trigger-from-another-repository/17461
4️⃣ https://github.community/t/trigger-a-workflow-from-another-workflow/17395

TL;DR we need two actions one for dispatching an event and the other for setting a trigger.

Tutorial 101 example of sending and receiving events here and this (high recommended)

@izgeri
Copy link
Contributor

izgeri commented Sep 30, 2020

Noting here that this may be relevant to cyberark/community#77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants