Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Install Backblaze b2 cli

Actions
Github actions for installing Backblaze b2 cli on linux
v1.0.0
Star (7)

install-b2-cli-action

test-action

Install Backblaze b2 CLI on a GitHub Actions Linux host. This action doesn't rely on docker image so is blazing fast.

After this action, every step is capable of running b2 CLI.

You can set 2 environment variables (secrets) B2_APPLICATION_KEY_ID and B2_APPLICATION_KEY to authenticate your cli.

Usage

Add the following step to a job in your workflow

- id: install-b2-cli
  uses: sylwit/[email protected]
  with:
    version: v3.0.1     # default to latest
  env:
    B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }}
    B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}

Full example

name: Sync app
on:
  push:

jobs:
  sync:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/[email protected]

      - uses: sylwit/[email protected]
        env:
          B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }}
          B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}
      ...

      - name: Sync
        run: b2 sync ./build b2://my_bucket

Authors

Created and maintained by Sylvain Witmeyer

License

This project is licensed under the MIT License - see the LICENSE file for details

Install Backblaze b2 cli 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

Github actions for installing Backblaze b2 cli on linux
v1.0.0

Install Backblaze b2 cli 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.