Skip to content

kapetacom/core-registry-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Kapeta Github Action

Helper action for performing CI/CD actions on Kapeta repositories

Inputs

credentials

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.

action

Required The action to invoke

Possible actions are:

  • publish - Publish the current version of the package to the registry
  • validate - Validate the kapeta.yml

Example usage

uses: kapetacom/core-registry-action@v3
with:
  action: publish
  credentials: ${{ secrets.BASE64_ENCODED_KAPETA_JWT_TOKEN }}

Requirements

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

Multi-Platform builds

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.