Skip to content
scaleway

GitHub Action

Scaleway CLI

v0.0.2 Latest version

Scaleway CLI

scaleway

Scaleway CLI

Install and use Scaleway CLI

Installation

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

              

- name: Scaleway CLI

uses: scaleway/[email protected]

Learn more about this action in scaleway/action-scw

Choose a version

GitHub action for Scaleway CLI

This action install scaleway-cli and allows you to run commands as well as install and export your config.

Usage

Config

  • save_config: save your config to scaleway's config file, useful to use it with other tools like terraform or SDKs
  • export_config: export your config to the environment to use the same action in the next steps

Checkout CLI's config documentation

- name: Use CLI
  uses: scaleway/action-scw@v0
  with:
    save-config: true
    export-config: true
    version: v2.24.0
    access-key: ${{ secrets.SCW_ACCESS_KEY }}
    secret-key: ${{ secrets.SCW_SECRET_KEY }}
    default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
    default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}

Commands

  • args: when arguments are given, a command will be executed and the json output will be in the json output
- name: Use CLI
  uses: scaleway/action-scw@v0
  id: cli
  with:
    args: instance server get ${{ env.SERVER_ID }}
- run: echo ${{ steps.cli.outputs.json }}

Others

  • version: default to latest, must be exact version. Fetched from exported config if available
  • access-key
  • secret-key
  • default-project-id
  • default-organization-id