Skip to content

scaleway/action-scw

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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