An open API service indexing awesome lists of open source software.

https://github.com/carvel-dev/setup-action

Github Action for setting up Carvel apps (ytt, kbld, kapp, kctrl, kwt, imgpkg and vendir)
https://github.com/carvel-dev/setup-action

carvel

Last synced: about 1 month ago
JSON representation

Github Action for setting up Carvel apps (ytt, kbld, kapp, kctrl, kwt, imgpkg and vendir)

Awesome Lists containing this project

README

          

# carvel-setup-action

[![Build Status](https://github.com/carvel-dev/setup-action/workflows/build/badge.svg?branch=develop)](https://github.com/carvel-dev/setup-action/actions?query=branch%3Adevelop+workflow%3Abuild)
[![Release Status](https://github.com/carvel-dev/setup-action/workflows/release/badge.svg)](https://github.com/carvel-dev/setup-action/actions?query=workflow%3Arelease)

A [Github Action](https://github.com/features/actions) to install [Carvel apps](https://carvel.dev/) (ytt, kbld, kapp, kwt, imgpkg, vendir and kctrl).

- Slack: [#carvel in Kubernetes slack](https://slack.kubernetes.io)

## Usage

By default, installs latest versions of `ytt`, `kbld`, `kapp`, `kwt`, `imgpkg`, `vendir` and `kctrl`:

```yaml
steps:
- uses: carvel-dev/setup-action@v2
- run: |
ytt version
kbld version
```

`carvel-setup-action` uses the GitHub API to find information about latest releases. To avoid [rate limits](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting) it is recommended you pass a [token](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token):

```yaml
steps:
- uses: carvel-dev/setup-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
ytt version
kbld version
```

To install only specific apps:

```yaml
steps:
- uses: carvel-dev/setup-action@v2
with:
only: ytt, kbld
- run: |
ytt version
kbld version
```

To exclude specific apps:

```yaml
steps:
- uses: carvel-dev/setup-action@v2
with:
exclude: kwt, vendir
- run: |
ytt version
kbld version
```

To use a specific version of an app:

```yaml
steps:
- uses: carvel-dev/setup-action@v2
with:
only: ytt, kbld
kbld: v0.28.0
- run: |
ytt version
kbld version
```

## Node version support

Version `v2` requires a Node 20 runner. If you're using older self-hosted runners, you can still use `v1` for Node 16 support.

## Development

See [DEVELOPMENT](https://github.com/carvel-dev/setup-action/blob/develop/DEVELOPMENT.md).