Creates and maintains a default ClusterIP service for specified workload
The name of the target workload deployment
The service port of the target workload deployment
A credentials file containing for the service account to be used to push to the repository
The name of the project which contains the desired repository
The name of the target Kubernetes cluster
The name of the target Kubernetes cluster namespace
name: Create default ClusterIP service
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
- uses: colpal/actions-default-clusterip
env:
DEPLOYMENT_NAME: deployment-name
DEPLOYMENT_PORT: 8080
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
GCP_PROJECT: gcp-project-id
GKE_CLUSTER: cluster-name
GKE_NAMESPACE: dev