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

feat: trigger GHA workflow via CircleCI [HEAD-350] #4815

Merged
merged 5 commits into from Sep 5, 2023

Conversation

cat2608
Copy link
Contributor

@cat2608 cat2608 commented Aug 30, 2023

What does this PR do?

This PR adds a CircleCI job to trigger a GitHub Actions workflow in the snyk/snyk-images repository using repository_dispatch event. This will build and push Snyk Docker images after Upload NPM job is completed.

Where should the reviewer start?

This new job is triggered when Upload NPM job is completed.

How should this be manually tested?

cURL the same command written in build-and-publish-snyk-images

What are the relevant tickets?

HEAD-350

Screenshots

CICD to GHA
cicd-to-gha

Additional questions

@cat2608 cat2608 requested a review from a team as a code owner August 30, 2023 18:59
.circleci/config.yml Outdated Show resolved Hide resolved
@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch from a1dc077 to ff27f1e Compare August 31, 2023 00:55
@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch 3 times, most recently from 2775b7d to a78031b Compare August 31, 2023 21:51
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
@cat2608 cat2608 requested a review from a team as a code owner September 1, 2023 19:35
@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch from 9925848 to 9798a96 Compare September 4, 2023 10:47
@cat2608 cat2608 changed the title feat: trigger GHA workflow via CircleCI feat: trigger GHA workflow via CircleCI [HEAD-350] Sep 4, 2023
@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch from 9798a96 to c01feb3 Compare September 4, 2023 12:12
- prepare-workspace
- run:
name: Trigger build-and-publish workflow at snyk-images
command: ./release-scripts/upload-artifacts.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: I think you are missing the parameter trigger-snyk-images

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! That's true! Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 🎉

@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch from c01feb3 to 340d137 Compare September 5, 2023 01:49
@cat2608 cat2608 force-pushed the chore/HEAD-350-update-gha-schedule branch from 340d137 to 937b052 Compare September 5, 2023 02:04
Comment on lines +59 to +64
echo -e "\033[1;33mTrigger Build and Publish Snyk Images:\033[0m" # Set color to yellow
echo ""
echo " upload-artifacts.sh trigger-snyk-images"
echo ""
echo " This will trigger the build-and-publish workflow in the snyk-images repository."
echo ""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the following:

show_help

@PeterSchafer PeterSchafer merged commit c1ca57f into master Sep 5, 2023
11 checks passed
@PeterSchafer PeterSchafer deleted the chore/HEAD-350-update-gha-schedule branch September 5, 2023 09:32
bastiandoetsch pushed a commit that referenced this pull request Sep 7, 2023
* feat: trigger GHA workflow via CircleCI

* chore: add docs for CLI Docker Images automation

* fix: rename build-and-publish to trigger-building-images

* fix: move GHA trigger logic into separate release script

* fix: add missing parameter for trigger-snyk-images script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants