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

Bbrooks/new relic staging fix #3936

Merged
merged 31 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
85b92d3
Separating the creation of backend and frontend artifacts into distin…
cthulhuplus Mar 29, 2022
a6459c5
Fixing typos
cthulhuplus Mar 29, 2022
c56aa81
Adding build url stuff to preview and troubleshooting info to staging
cthulhuplus Mar 30, 2022
251f26f
Making Prod user-data script more like Preview
cthulhuplus Mar 30, 2022
42ff382
Trying to fix Preview Deploy
cthulhuplus Mar 30, 2022
1724cfe
Removed excess white space and clearning
cthulhuplus Mar 30, 2022
0a8e803
Merge branch 'main' into bbrooks/new-relic-staging-fix
cthulhuplus Mar 30, 2022
f6ec8a6
Remove CloudWatch from user-data, makes the file too big
cthulhuplus Mar 30, 2022
7f1f090
Updating download artifact and removing Git clone strategy
cthulhuplus Mar 31, 2022
fe1ab26
Trying to get CircleCI to accept the new URL header
cthulhuplus Mar 31, 2022
52d490a
Putting entire headerin variable
cthulhuplus Mar 31, 2022
e958b4b
Removing quotes
cthulhuplus Mar 31, 2022
76215ba
Updating the artifact URL
cthulhuplus Mar 31, 2022
98c6f99
Creating build url via script
cthulhuplus Apr 1, 2022
fe52a17
Merge branch 'main' into bbrooks/new-relic-staging-fix
cthulhuplus Apr 1, 2022
6d4b57c
Triggering CICD
cthulhuplus Apr 1, 2022
a7c0f71
Merge branch 'bbrooks/new-relic-staging-fix' of https://github.com/CM…
cthulhuplus Apr 1, 2022
e1484f0
Triggering CICD
cthulhuplus Apr 1, 2022
0287204
Triggering CICD
cthulhuplus Apr 1, 2022
178e7df
Trying to get CI to run
cthulhuplus Apr 1, 2022
071f505
Trying to trigger CI
cthulhuplus Apr 1, 2022
d2d510d
added blank line
thetif Apr 1, 2022
8868a31
Removing extra line in Chromatic
cthulhuplus Apr 1, 2022
fee8266
Merge branch 'main' into bbrooks/new-relic-staging-fix
cthulhuplus Apr 1, 2022
beaf438
Need to build
cthulhuplus Apr 1, 2022
715d650
Merge branch 'bbrooks/new-relic-staging-fix' of https://github.com/CM…
cthulhuplus Apr 1, 2022
b07b3dd
changing command path and removing fake file
cthulhuplus Apr 1, 2022
149b31e
Adding the old triple v
cthulhuplus Apr 4, 2022
84ab550
Reordered store artifacts before the curl command to get the url to d…
cthulhuplus Apr 4, 2022
84aa255
Removing backend.zip from build url variable
cthulhuplus Apr 4, 2022
fedf62c
Merge branch 'main' into bbrooks/new-relic-staging-fix
cthulhuplus Apr 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 8 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -876,17 +876,18 @@ jobs:
working_directory: ~/project
command: |
zip -r /tmp/frontend.zip web/dist/*
- store_artifacts:
path: /tmp/backend.zip
destination: backend.zip
- store_artifacts:
path: /tmp/frontend.zip
destination: frontend.zip
- run:
name: Persist Build URL to Workspace
working_directory: ~/project
command: sh bin/buildurl.sh CIRCLE_TOKEN=${CIRCLE_TOKEN} CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM} > ./build-url.txt
command: sh bin/prod-deploy/buildurl.sh CIRCLE_TOKEN=${CIRCLE_TOKEN} CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM} > ./build-url.txt
- persist_to_workspace:
root: ~/project
paths:
- ./build-url.txt
- store_artifacts:
path: /tmp/backend.zip
destination: backend.zip
- store_artifacts:
path: /tmp/frontend.zip
destination: frontend.zip

2 changes: 1 addition & 1 deletion bin/prod-deploy/buildurl.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
curl -H "${CIRCLE_TOKEN}" -L https://circleci.com/api/v2/project/gh/CMSgov/eAPD/${CIRCLE_BUILD_NUM}/artifacts |grep -o 'https://[^"]*' |grep backend.zip > build-url.txt
curl -vvv -H "${CIRCLE_TOKEN}" -L https://circleci.com/api/v2/project/gh/CMSgov/eAPD/${CIRCLE_BUILD_NUM}/artifacts |grep -o 'https://[^"]*' |grep backend.zip > build-url.txt