Helper action for performing CI/CD actions on Kapeta repositories
Required A valid JWT token - must be base64 encoded. Create a service account in your Kapeta account - and use the JWT token from that. Note that it must be allowed to read and write to your registry.
Required The action to invoke
Possible actions are:
publish
- Publish the current version of the package to the registryvalidate
- Validate the kapeta.yml
uses: kapetacom/core-registry-action@v3
with:
action: publish
credentials: ${{ secrets.BASE64_ENCODED_KAPETA_JWT_TOKEN }}
In order for some of the actions to work we need the full history of the repository, so please checkout eveything using. This is needed for conventional commits and version calculations.
- uses: actions/checkout@v3
with:
fetch-depth: 0
Kapeta uses docker to build the images. To make these multi-platform you need to add QEMU and the BuildX action before running this action:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
See https://docs.docker.com/build/ci/github-actions/multi-platform/ for more information about multi-platform builds with Github Actions.