https://github.com/balena-io-examples/setup-balena-action
Install the balena CLI in your GitHub Actions workflow
https://github.com/balena-io-examples/setup-balena-action
Last synced: 3 months ago
JSON representation
Install the balena CLI in your GitHub Actions workflow
- Host: GitHub
- URL: https://github.com/balena-io-examples/setup-balena-action
- Owner: balena-io-examples
- License: apache-2.0
- Created: 2024-04-12T15:41:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-23T14:46:37.000Z (about 1 year ago)
- Last Synced: 2025-03-14T20:55:09.457Z (3 months ago)
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup balena CLI Action
This action installs the balena CLI in your GitHub Actions workflow
for interactions with balenaCloud like pushing releases.## Usage
```yaml
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
```yaml
- name: Setup balena CLI
uses: balena-io-examples/setup-balena-action@main
```### Install specific release
```yaml
- name: Setup balena CLI
uses: balena-io-examples/setup-balena-action@main
with:
cli-version: v18.1.9
```### Login to balenaCloud
```yaml
- name: Setup balena CLI
uses: balena-io-examples/setup-balena-action@main
with:
balena-token: "*****"
```### Login to balenaCloud staging
```yaml
- 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
```yaml
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
```