Add option to keep the cluster
@@ -15,6 +15,10 @@ on:
description: "AWS_SECRET_ACCESS_KEY"
required: false
default: ""
+ keep_cluster:
+ description: "Keep the cluster afterwards? (empty/yes)"
+ required: false
+ default: ""
env:
SETUP_GO_VERSION: '^1.13.7'
@@ -40,7 +44,7 @@ jobs:
run: |
choco install eksctl
- - name: Configure AWS credentials
+ - name: Configure AWS credentials for Route53
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ github.event.inputs.aws_id || secrets.AWS_ACCESS_KEY_ID }}
@@ -67,7 +71,7 @@ jobs:
make test-acceptance-install
- name: Delete EKS cluster
- if: ${{ always() }}
+ if: ${{ always() && !github.event.inputs.keep_cluster }}
env:
KUBECONFIG: kubeconfig-epinio-ci
shell: bash
