Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fail handling #285

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .github/workflows/prod_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
-H "Authorization: Bearer ${{ secrets.CI_TOKEN }}" \
-H "Content-Type:application/json" \
-d '{"steps": ["deploy_auth", "deploy_batch", "deploy_ci", "deploy_hailgenetics_image", "deploy_memory", "deploy_wheel", "upload_query_jar"], "sha": "${{ github.sha }}"}' \
https://ci.hail.populationgenomics.org.au/api/v1alpha/prod_deploy)
if [ $? -ne 0 ]; then
DEPLOY_BATCH_URL_GCP="failed"
echo "Failed to deploy to GCP"
fi
https://ci.hail.populationgenomics.org.au/api/v1alpha/prod_deploy || echo "failed")
echo DEPLOY_BATCH_URL_GCP="$DEPLOY_BATCH_URL_GCP" >> $GITHUB_ENV

- name: deploy to Azure
Expand All @@ -28,11 +24,7 @@ jobs:
-H "Authorization: Bearer ${{ secrets.CI_TOKEN_AZURE }}" \
-H "Content-Type:application/json" \
-d '{"steps": ["deploy_auth", "deploy_batch", "deploy_ci", "deploy_memory", "upload_query_jar"], "sha": "${{ github.sha }}"}' \
https://ci.azhail.populationgenomics.org.au/api/v1alpha/prod_deploy)
if [ $? -ne 0 ]; then
DEPLOY_BATCH_URL_AZURE="failed"
echo "Failed to deploy to Azure"
fi
https://ci.azhail.populationgenomics.org.au/api/v1alpha/prod_deploy || echo "failed")
echo DEPLOY_BATCH_URL_AZURE="$DEPLOY_BATCH_URL_AZURE" >> $GITHUB_ENV

- name: post to Slack
Expand Down