This action can be used to run a kubectl command.
example usage:
name: Run gcloud version on push
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: colpal/[email protected]
env:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
GCP_PROJECT: gcp-project-id
GKE_CLUSTER_NAME: cluster-name
with:
args: version
Note: GCP_CREDENTIALS needs to be a base64 encoded string.
Example to convert your secret file into base64
cat my_service_account_secret_file.json | base64 > my_service_account_secret_file.json.base64
You can then proceed to open it with any text editor to copy and paste it in the GitHub Secrets.