8000 GitHub - andromidasj/install-b2-cli-action: Install the Backblaze B2 cli
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andromidasj/install-b2-cli-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

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

install-b2-cli-action

test-action

Install and authorize Backblaze B2 CLI directly on a GitHub Actions Linux host.

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

You must 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: andromidasj/install-b2-cli-action@v1.0.0
  with:
    version: v4.1.0     # default to latest
  env:
    B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }}
    B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}

Full example

name: Update CORS
on:
  push:

jobs:
  sync:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2.4.0

      - uses: andromidasj/install-b2-cli-action@v1.0.0
        env:
          B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }}
          B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}
      ...

      - name: Update CORS
        run: b2 bucket update --cors-rules "$(<./b2-cors.json)" myBucket allPrivate

Authors

Created and maintained by Sylvain Witmeyer Forked and updated by Josh Andromidas

License

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

About

Install the Backblaze B2 cli

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0