Skip to content
upload-cloud

GitHub Action

Balena Push

v1.1.1 Latest version

Balena Push

upload-cloud

Balena Push

Continuously push your code to your IoT fleets on Balena

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Balena Push

uses: theaccordance/balena-push@v1.1.1

Learn more about this action in theaccordance/balena-push

Choose a version

Balena Push

Github Actions Latest Version CodeFactor Last Commit Open Bugs Feature Requests Forks Stars License

Continuously deliver your applications to BalenaCloud.

Table of Contents

Inputs

Attribute Required? Purpose
api-token Yes* A BalenaCloud API Token, used to authenticate with BalenaCloud. API keys can be created in the user settings for BalenaCloud.
application-name Yes* The target application on BalenaCloud
application-path Optional Provide a sub-path to the location for application being deployed to BalenaCloud. Defaults to the workspace root.

Examples

Pushing the project root

name: Balena Push

on:
  push:
    # Only run workflow for pushes to specific branches
    branches:
      - master

jobs:
  balena-push:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: theaccordance/balena-push@v1.1.0
      with:
        api-token: ${{secrets.BALENA_API_TOKEN}}
        application-name: ${{secrets.BALENA_APPLICATION_NAME}}

Pushing a project sub-directory

name: Balena Push

on:
  push:
    # Only run workflow for pushes to specific branches
    branches:
      - master

jobs:
  balena-push:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: theaccordance/balena-push@v1.1.0
      with:
        api-token: ${{secrets.BALENA_API_TOKEN}}
        application-name: ${{secrets.BALENA_APPLICATION_NAME}}
        application-path: "./balena-wpe"