Skip to content

balena-io-examples/setup-balena-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Install the balena CLI in your GitHub Actions workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published