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

Adding a repository dispatch event to apollo repository for docker build. #520

Open
SatyamMattoo opened this issue Jul 24, 2024 · 0 comments

Comments

@SatyamMattoo
Copy link

SatyamMattoo commented Jul 24, 2024

Issue

Whenever changes are pushed to the main branch of the docs repo, we need to rebuild the docker image (for the apollo repo) in order to seed the database with the updated docs. This issue needs to be looked into after PR is merged.

Implementation

To achieve this, we can add a step to the already existing workflow to trigger a dispatch event for the apollo repo to re-build the docker image.

We can either do it using the peter-evans/repository-dispatch@v2 or a

curl -X POST -H "Accept: application/vnd.github.v3+json" \
          -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
          https://api.github.com/repos/OpenFn/apollo/dispatches \
          -d '{"event_type":"docs-updated"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant