Skip to content

Setup balena CLI Action

Actions
Setup the balena CLI in a GitHub Actions workflow
v0.0.12
Latest
Star (1)

Setup balena CLI Action

This action installs the balena CLI in your GitHub Actions workflow for interactions with balenaCloud like pushing releases.

Usage

uses: balena-io-examples/setup-balena-action@main
with:
  # balena CLI version to install (example: `v18.1.9`)
  # Default: 'latest'
  cli-version: ''

  # balenaCloud API token to login automatically
  # Default: ''
  balena-token: ''

  # Skip using the tool cache and always re-download
  # Default: 'false'
  skip-cache: ''

Examples

Install latest release

- name: Setup balena CLI
  uses: balena-io-examples/setup-balena-action@main

Install specific release

- name: Setup balena CLI
  uses: balena-io-examples/setup-balena-action@main
  with:
    cli-version: v18.1.9

Login to balenaCloud

- name: Setup balena CLI
  uses: balena-io-examples/setup-balena-action@main
  with:
    balena-token: "*****"

Login to balenaCloud staging

- name: Setup balena CLI
  uses: balena-io-examples/setup-balena-action@main
  env:
    BALENARC_BALENA_URL: balena-staging.com
  with:
    balena-token: "*****"

Push release to balenaCloud

jobs:
  push:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Setup balena CLI
      uses: balena-io-examples/setup-balena-action@main
      with:
        balena-token: "*****"
    - name: Push release
      run: balena push myorg/myfleet

Setup balena CLI Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup the balena CLI in a GitHub Actions workflow
v0.0.12
Latest

Setup balena CLI Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.