From e2a17ca44fd09601dd621476557f66f88a8f323f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20St=C3=A4bler?= Date: Thu, 13 Jun 2024 17:01:47 +0200 Subject: [PATCH] Add kubectl context expiration --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e92b472..0d29844 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,7 @@ jobs: with: token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Save DigitalOcean kubeconfig with short-lived credentials - run: doctl kubernetes cluster kubeconfig save productionbuild-cluster + run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 productionbuild-cluster - name: Checkout source code uses: actions/checkout@v4 - name: Deploy to the Kubernetes cluster