aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main-branch.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml
index 9c933ef..b9fe837 100644
--- a/.github/workflows/main-branch.yml
+++ b/.github/workflows/main-branch.yml
@@ -33,3 +33,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
with:
bump_version_scheme: norelease # PR must have one of these labels: release:major, release:minor, release:patch
+
+ Deploy-kubernetes:
+ name: Deploy kubernetes cluster locally to an action
+ runs-on: ubuntu-latest
+ needs: Build-docker-and-push
+ steps:
+ - uses: actions/checkout@v4
+ - uses: medyagh/setup-minikube@master
+ - name: Pull (release) docker image
+ run: |
+ docker pull ${{ secrets.DOCKERHUB_USERNAME }}/pico-web-server:latest
+ - name: Minikube deploy
+ run: |
+ kubectl apply -f kubernetes/
+ kubectl rollout status deployment/pico-web-server-deployment
+ - name: Minikube use
+ run: |
+ minikube service list
+ - name: Minikube stop
+ run: |
+ minikube stop