Skip to content

Setup webhooks to manually trigger build actions. #1

@lianos

Description

@lianos

GitHub Actions currently can't be triggered manually, and it would be nice to trigger a build of an image without having to push a commit to the appropriate place.

This blog post using webhooks might shows a way to do that.

After that is setup, you can write some bash aliases that wraps the curl commands to build the appropriate image, ie.:

curl -X POST https://api.github.com/repos/:owner/:repo/dispatches \
  -H 'Accept: application/vnd.github.everest-preview+json' \
  -H 'Authorization: token TOKEN_VALUE_HERE' \
  --data '{"event_type": "CUSTOM_ACTION_NAME_HERE"}'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions