Skip to content

Commit

Permalink
Cleanup output
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 15, 2022
1 parent 0298cdb commit de45c37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,17 @@ jobs:
oc project ${{ secrets.NAMESPACE }}
# Cancel any rollouts in progress
oc rollout cancel dc/gfp-${{ github.event.number }} || true
oc rollout cancel dc/gfp-${{ github.event.number }} 2> /dev/null \
|| true && echo "No rollout in progress"
# Process and apply deployment template
oc process -f .pipeline/deploy.yml \
-p SUFFIX=${{ github.event.number }} -p ENV=${{ secrets.ENV }} \
| oc apply -f -
# Start rollout (if one hasn't started) and follow it
oc rollout latest dc/gfp-${{ github.event.number }} || true
# Start rollout (if necessary) and follow it
oc rollout latest dc/gfp-${{ github.event.number }} 2> /dev/null \
|| true && echo "Rollout in progress"
oc logs -f dc/gfp-${{ github.event.number }}
# Get status, returns 0 if rollout is successful
Expand Down

0 comments on commit de45c37

Please sign in to comment.