A Github action to automate packaging and pushing a NanoBus application to a supported registry, such as https://reg.candle.run.
Not every OCI registry supports the artifact format that is used by NanoBus, so Candle (https://candle.dev) has created a free registry that supports it. You can sign up for a free account at https://reg.candle.run. If you have a different registry that you need to use, the push command will target any registry that is defined in your bus.yaml
file for your application.
If you are using Candle registry: When you create your account, you can look at your profile and see the CLI token that can be used for the password. Make sure you have created a "New Project" in the Candle registry before you attempt to push.
See a working example of push that is used to package and push the NanoBus documentation as part of a CI-CD process: https://github.com/nanobus/examples/blob/main/.github/workflows/nanochat.yml
- name: Package and push
uses: nanobus/push-action@v1
with:
path: "nanobus_app/bus.yaml"
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
Description: Path to the bus.yaml. This file contains the registry configuration details. Defaults to bus.yaml
which would be present in the root directory for the git repo.
Required: true
Default: bus.yaml
Description: Username for registry
Required: true
Description: Password for registry
Required: true
Description: The image tag that was pushed
The scripts and documentation in this project are released under the Apache License 2.0.