From e4f46d47054eab00c352c6b1a3b7c6fbdb6b607e Mon Sep 17 00:00:00 2001 From: Kirill Morozov Date: Mon, 1 Apr 2024 18:06:03 -0400 Subject: [PATCH] Deploy image after push --- .github/workflows/docker-image.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9497028..7119121 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -57,6 +57,15 @@ jobs: - name: Save DigitalOcean kubeconfig with short-lived credentials run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 smile-k8s-1-29-1-do-0-nyc3-1711943773962 + - name: Set namespace + run: kubectl config set-context --current --namespace thesmile + + - name: Deploy to DigitalOcean Kubernetes + run: kubectl apply -f $GITHUB_WORKSPACE/build/k8s/deployment.yml + + - name: Verify deployment + run: kubectl rollout status deployment/thesmile +