@@ -168,12 +168,6 @@ commands:
168168 - run :
169169 name : Build Application
170170 command : yarn build:prod
171- - run :
172- name : Mark Sentry release
173- command : |
174- if [ "${CIRCLE_BRANCH}" == "master" ]; then
175- node packages/app/scripts/sentry-create-release.js
176- fi
177171 - save_cache : *save_prod_build_cache
178172 - save_cache : *save_prod_result
179173 - run :
@@ -306,17 +300,18 @@ jobs:
306300 docker :
307301 - image : curlimages/curl:7.65.3
308302 steps :
303+ - run :
304+ name : Mark Sentry release
305+ command : node packages/app/scripts/sentry-create-release.js
306+ - checkout_with_cache
307+ - restore_cache : *restore_deps_cache
308+ - attach_workspace : *attach_deps_workspace
309309 - run :
310310 name : Deploy Image
311- command : |
312- curl --request POST \
313- --url https://deployment-api.lbogdan.ro/image \
314- --header 'Accept: */*' \
315- --header 'Authorization: Bearer '$DEPLOY_TOKEN'' \
316- --header 'Content-Type: application/json' \
317- --header 'Postman-Token: e9e28b11-1889-488e-92c8-d8e41ef24e75' \
318- --header 'cache-control: no-cache' \
319- --data '{ "env": "production", "image": "client", "tag": "'${CIRCLE_SHA1:0:7}'", "deploy": true }'
311+ command : node packages/app/scripts/deploy.js
312+ - run :
313+ name : Deploy Sentry release
314+ command : node packages/app/scripts/sentry-deploy-release.js
320315
321316# ###############################
322317# Workflows
0 commit comments