Lets consider a use-case where we have a fairly standard set of resources that we want to deploy to Kodexa.Usually when we start with a project like this the key elements such as:
Taxonomy
Invoice Data Form
Transformer Model (optional)
We will create a manifest file that describes the resources that we want to deploy to Kodexa.
Copy
Ask AI
# This is a Manifest fileresources-paths: - "models/*.yml" - "resources/taxonomy.yml" - "resources/invoice-data-form.yml"
In order to start the process we will want to download each of these resources from the instance and
then create a new GitHub repository to store the resources.
Copy
Ask AI
mkdir -p resources modelskodexa get taxonom my-org/7644d17a-cbac-44b5-b756-731f793a763e-content:1.0.0 --output-path resources --output-file taxonomy.ymlkodexa get dataform my-org/7644d17a-cbac-44b5-b756-731f793a763e-data-form:1.0.0 --output-path resources --output-file invoice-data-form.yml
Once we have these files in place we can now commit the structure to the repository and create a pull request.
Copy
Ask AI
git add .git commit -m "Initial commit of resources"git push
With Github Actions we can now deploy the resources to Kodexa.To do this we will need to define a workflow file in the repository, this will make sure we have Python 3.11 and also
ensure we have the kodexa-cli installed.
You will need to ensure you have set your access token and URL as secrets in the repository.