Spawn is easy to integrate with Github Actions. We provide actions that plug directly into your workflows allowing you to use Spawn functionality without having to install and script
spawnctl on your agents.
Most of the spawnctl commands have their own action:
- Create data image
- Delete data image
- Create data container
- Save data container
- Reset data container
- Delete data container
If you've used spawnctl, the action inputs and outputs should be familiar. See the
README.md in each action's repository to learn what inputs each action requires and what outputs it provides, or examine the example workflow below.
The following example workflow shows how each of the available Github actions is used. The workflow runs through the following steps:
- Create a data image
- Create a data container from the image
- Display the connection details for the new data container
- Save and reset the data container
- Delete the container and the image
Note that all of the actions require a
SPAWNCTL_ACCESS_TOKEN secret available to the repository in which the workflow runs.
We welcome all feedback on the Github actions. Please open an issue or a pull request on the individual action repositories.