Skip to content

Commit

Permalink
test: repeat ssh command to reduce second run outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Jun 30, 2022
1 parent ef33162 commit 162f038
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-gcp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,13 @@ jobs:
# `docker wait` can also wait for multiple containers, but we only ever wait for a single container.
- name: Result of ${{ inputs.test_id }} test
run: |
gcloud compute ssh \
${{ inputs.test_id }}-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \
--zone ${{ env.ZONE }} \
--quiet \
--ssh-flag="-o ServerAliveInterval=5" \
--command="docker wait ${{ inputs.test_id }}"
EXIT_CODE=$(\
gcloud compute ssh \
${{ inputs.test_id }}-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \
Expand All @@ -674,7 +681,7 @@ jobs:
--ssh-flag="-o ServerAliveInterval=5" \
--command="docker wait ${{ inputs.test_id }}" \
)
echo "$EXIT_CODE"
echo "EXIT_CODE startst here: --> $EXIT_CODE <-- ends here"
exit "$EXIT_CODE"
Expand Down

0 comments on commit 162f038

Please sign in to comment.