Skip to content

GlobeFishNG/setup-cloud-cli

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

Setup Cloud CLI

There are several profiles as below for our CI/CD kubernetes cluster.

  • aws-us (default)
  • aws-cn
  • aliyun
  • aliyun-prod

Below are 2 examples for Aliyun and AWS. After a profile is configured, cloud cli (aliyun or aws) will have proper permissions to manipulate corresponding cloud resources.

jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
      - name: Setup Cloud CLI
        uses: GlobeFishNG/setup-cloud-cli@v1
        with:
          profile: aliyun
      - run: |
          aliyun oss cp oss://example-bucket/example-file.json .
jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
      - name: Setup Cloud CLI
        uses: GlobeFishNG/setup-cloud-cli@v1
        with:
          profile: aws-cn
      - run: |
          aws s3 cp s3://example-bucket/example-file.json .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published