-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: DOC-1597 CI/CD Error Catching (#5451)
* ci: adding set -e * ci: more test * ci: more test * ci: test with exit code 5 * ci: not set -e * ci: DOC-1597 * ci: removed script * docs: updated README * docs: format fix * chore: fix mistake * ci: retest * ci: mock test for 5 * ci: test with 5 * ci: test with 5 * ci: clean build test * ci: ready for merge * docs: apply suggestions from code review Co-authored-by: Adelina Simion <[email protected]> * ci: added logic for retry * docs: updated comment --------- Co-authored-by: Adelina Simion <[email protected]>
- Loading branch information
1 parent
3b6f577
commit 5da6cf8
Showing
7 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ jobs: | |
touch .env | ||
make versions-ci | ||
make build-ci | ||
- name: Build with cached packs | ||
if: ${{ env.BUILD_EXIT_CODE == '5' }} | ||
uses: ./.github/actions/build-cached-packs | ||
|
@@ -81,14 +81,15 @@ jobs: | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload to AWS | ||
if: ${{ env.BUILD_EXIT_CODE == '0' }} | ||
run: | | ||
echo "CURRENT_STEP=Upload to AWS" >> $GITHUB_ENV | ||
aws s3 sync --cache-control 'public, max-age=604800' --exclude '*.html' --exclude '*.xml' --exclude build/scripts/ build/ s3://docs.spectrocloud.com --delete | ||
aws s3 sync --cache-control 'public, max-age=0, s-maxage=604800' build/ s3://docs.spectrocloud.com --delete | ||
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/*" | ||
- name: Slack Notification on Failure | ||
if: ${{ failure() }} | ||
if: ${{ failure() || env.BUILD_EXIT_CODE != '0' }} | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters