Skip to content

Commit

Permalink
ci: use correct commit id
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Nov 29, 2023
1 parent 1bcc41e commit eb7c5ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildspec-e2e-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
phases:
install:
commands:
- echo $COMMIT_SHA
- echo $COMMIT_ID
- echo $CODEBUILD_SOURCE_VERSION
- echo $CODEBUILD_BUILD_ID
- echo $CODEBUILD_PUBLIC_BUILD_URL
Expand All @@ -15,7 +15,7 @@ phases:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/fingerprintjs/fingerprint-pro-cloudfront-integration/statuses/$COMMIT_SHA \
https://api.github.com/repos/fingerprintjs/fingerprint-pro-cloudfront-integration/statuses/$COMMIT_ID \
-d "{\"state\":\"pending\",\"target_url\":\"https://us-east-1.console.aws.amazon.com/codesuite/codebuild/708050157146/projects/fpjs-dev-cloudfront-lambda-e2e-tests/build/$CODEBUILD_BUILD_ID/?region=us-east-1\",\"description\":\"E2E tests for release are running\",\"context\":\"e2e-release\"}"
- ls -a
- curl -fsSL https://get.pulumi.com | sh
Expand All @@ -42,7 +42,7 @@ phases:
finally:
- cd ../..
- echo $CODEBUILD_BUILD_SUCCEEDING
- echo $COMMIT_SHA
- echo $COMMIT_ID
- export STATUS=$(sh ./scripts/get-codebuild-status.sh)
- echo $STATUS
- |
Expand All @@ -51,6 +51,6 @@ phases:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/fingerprintjs/fingerprint-pro-cloudfront-integration/statuses/$COMMIT_SHA \
https://api.github.com/repos/fingerprintjs/fingerprint-pro-cloudfront-integration/statuses/$COMMIT_ID \
-d "{\"state\":\"$STATUS\",\"target_url\":\"https://us-east-1.console.aws.amazon.com/codesuite/codebuild/708050157146/projects/fpjs-dev-cloudfront-lambda-e2e-tests/build/$CODEBUILD_BUILD_ID/?region=us-east-1\",\"description\":\"E2E tests for release finished\",\"context\":\"e2e-release\"}"
- cd e2e/infra && yarn cloudfront:destroy && yarn lambda:destroy && cd ../..

0 comments on commit eb7c5ec

Please sign in to comment.