diff options
Diffstat (limited to '.github/workflows/main-branch.yml')
| -rw-r--r-- | .github/workflows/main-branch.yml | 17 |
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 |
