aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-08-12 17:12:13 +0300
committerSyndamia <kamen@syndamia.com>2024-08-12 17:12:13 +0300
commitcdda8aad16f5e66056604a42e26577fabcd728ee (patch)
treeb7a3c6a3682917bfbdf146ab4fcb1b211f1874bf /.github
parentcee1db9414b9ee400e7dcafeb082a80bee80b359 (diff)
downloadpico-web-cdda8aad16f5e66056604a42e26577fabcd728ee.tar
pico-web-cdda8aad16f5e66056604a42e26577fabcd728ee.tar.gz
pico-web-cdda8aad16f5e66056604a42e26577fabcd728ee.zip
feat(main-branch): Kubernetes deployment now first rolls out old k8s and then new
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main-branch.yml17
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml
index b9fe837..33fd0f0 100644
--- a/.github/workflows/main-branch.yml
+++ b/.github/workflows/main-branch.yml
@@ -39,11 +39,15 @@ jobs:
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: Checkout previous
+ uses: actions/checkout@v4
+ with:
+ ref: $${{ github.event.before }}
- name: Minikube deploy
run: |
kubectl apply -f kubernetes/
@@ -51,6 +55,17 @@ jobs:
- name: Minikube use
run: |
minikube service list
+
+ - name: Checkout current
+ uses: actions/checkout@v4
+ - name: Minikube update
+ 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