Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

colpal/actions-gke-ci-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GKE CI Test

Runs a code test on a GKE cluster and monitors the job until completion. This action was built and tested only for testing jobs that run a single pod.

Inputs

gke_service_account

Google Kubernetes Engine Service Account

A credentials file containing for the service account to be used to interact with the GKE cluster.

gke_cluster_name

Google Kubernetes Engine Cluster Name

Cluster name of the GKE instance.

gke_project

Google Kubernetes Engine Project

Project which contains the GKE instance.

manifest_file

Kubernetes Job Manifest File

Path and name of the Kubernetes manifest .yml file. This file should describe the testing job to be run. This file must run a kubernets job and only the logs of the first pod will be monitored. Defaults to 'ci-test.yml'

namespace

Kubernetes Namespace

The Kubernetes namespace on which the test job will run. Defaults to 'ci-test'

Example usage

- name: Run test job
    uses: colpal/actions-gke-ci-test
    with:
    GKE_SERVICE_ACCOUNT: ${{ secrets.GCR_GCP_CREDENTIALS }}
    GKE_PROJECT: 'cp-advancedtech-sandbox'
    GKE_CLUSTER_NAME: cp-advtech-cluster
    MANIFEST_FILE: 'testing/ci-test.yml'