Skip to content

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

@SatyamMattoo

Description

@SatyamMattoo

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions