Skip to content
aliyun

GitHub Action

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)

v1 Latest version
Use latest version
aliyun

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)

Log in to a container registry

Installation

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

- name: Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)
  uses: aliyun/ack-set-context@v1
Learn more about this action in aliyun/ack-set-context
Choose a version

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)

Use this GitHub Action to set context for Kubernetes cluster of Alibaba Cloud Kubernetes (ACK).

Set the KUBECONFIG environment variable by cluster id for K8s cluster managed by ACK.

- uses: aliyun/ack-set-context@v1
  with:
    access-key-id: '<access key id>'
    access-key-secret: '<access key secret>'
    cluster-id: '<cluster id>'

Refer to the action metadata file for details about all the inputs: action.yml

Prerequisite

Get the access-key-id and access-key-secret of Alibaba Cloud and add them as as secrets in the GitHub repository.