Building your Action Store
How to build your own action store
Publishing an Action Store using Kubiya CLI:
Publishing your action store is a crucial step towards making it available to Kubiya workflows. With Kubiya CLI, you can easily publish your action store using the following steps:
Creating a Docker registry for your Action Store:
Before publishing your action store, you need to create a Docker registry to store your action store image. You can use public or private registries to store your image. Here's how you can create a Docker registry:
Using public registry
If you want to use a public registry, you can use one of the following options:
- Docker Hub - the most known Docker registry which supports pulling without authentication
- TTL.sh - a temporary registry which supports pushing & pulling without authentication. We recommend TTL.sh if you want to quickly test action stores
- Quay.io - It's another free public registry provided by Red Hat. You can create a new account and use it to store your action store image.
Using private registry
Private Registry: If you want to use a private registry, you need to create it first. Here are some popular options:
- Amazon Elastic Container Registry (ECR): It's a fully-managed Docker container registry provided by Amazon Web Services (AWS). You can create a new ECR repository and use it to store your action store image.
- Google Container Registry (GCR): It's a private Docker container registry provided by Google Cloud. You can create a new GCR repository and use it to store your action store image.
Note: Private registries require authentication to access and push the images - for reference on how to add a private repository please refer to the Private registries page
Bundling the action store
After creating a registry to host the action store image, you can build the action store using the CLI. The action store bundle command will take care of the build and push process to your Docker registry:
kubiya action-store bundle --path <path-to-action-store> --image <registry-url>/<image-name>:<tag> --store-name <store-name>
Here, replace <path-to-action-store> with the path to your action store, <registry-url> with the URL of your container registry, <image-name> with the name of your action store image, <tag> with the version of your action store image and <store-name> with the name of your action store.
A succesfull build should response with similar output:
file: XXX
file: XXX
file: XXX
Action store my-action-store was built succesfully and pushed to registry: my-registry:my-tag
- 3.Verify the Published Action Store: After pushing your action store, you can verify it by checking the registry URL or by executing the following command:
kubiya action-store list
Action Stores
-------------
1 my-action-store
Last modified 18d ago