From f80968ed0cc8beadd0193746410eb5a964bdd45d Mon Sep 17 00:00:00 2001 From: hannah-macdonald1 Date: Tue, 5 Nov 2024 11:53:32 -0700 Subject: [PATCH] try to auto rollout pod --- .github/workflows/build-and-push-ghcr.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-and-push-ghcr.yaml b/.github/workflows/build-and-push-ghcr.yaml index 86d9b2c..3447dfc 100644 --- a/.github/workflows/build-and-push-ghcr.yaml +++ b/.github/workflows/build-and-push-ghcr.yaml @@ -91,3 +91,9 @@ jobs: --namespace ${{ secrets.OPENSHIFT_NAMESPACE }} \ --set image.repository=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} \ --set image.tag=${{ needs.build_and_push.outputs.image_tag }} + + - name: Restart Pod after image update + run: | + oc rollout restart deployment \ + --namespace ${{ secrets.OPENSHIFT_NAMESPACE }} \ + --selector=app.kubernetes.io/name=vpi-app