Automating the building and pushing parts of working with GVMI images
-
First, go to Settings > Secrets > Actions > New repository secret and create a
SKYNET_REGISTRY_SEED
secret. This can be anything, really. Words, a hash, a phrase, a password, you name it. -
Then, create your /.github/workflows/push-gvmi.yml file.
-
Now change the skylink on this line to the marked text below, taken from the workflow's successful run (navigate here & click the top one). This skylink will never change, so you just need to do it when you create your new project.
-
To get your automatically updating image hash, run
await get_hash()
- Must be on a 'main' branch.
- Must have a Dockerfile at the root of your repository.
- Install the Skynet dependency:
pip install siaskynet
- Install the aiofiles dependency:
pip install aiofiles