Skip to content

Commit

Permalink
fix: rollout latest doesn't work with deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
trev-dev committed Dec 11, 2024
1 parent 34ce1fd commit 49ab7eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to.openshift-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
${{ env.BRANCH }}
# Start rollout (if necessary) and follow it
oc rollout latest deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
|| true && echo "Rollout in progress"
oc logs -f deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to.openshift-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
${{ env.BRANCH }}
# Start rollout (if necessary) and follow it
oc rollout latest deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
|| true && echo "Rollout in progress"
oc logs -f deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to.openshift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:

APP_NAME: 'pen-request-api'
REPO_NAME: "educ-pen-request-api"
BRANCH: "${{ github.ref_name }}"
BRANCH: ${{ github.ref_name }}
APP_NAME_FULL: "pen-request-api-master"
NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
${{ env.BRANCH }}
# Start rollout (if necessary) and follow it
oc rollout latest deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }} 2> /dev/null \
|| true && echo "Rollout in progress"
oc logs -f deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down

0 comments on commit 49ab7eb

Please sign in to comment.