Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 0 additions & 2 deletions .gitlab/deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ step-6_publish-developer-extension:
- node ./scripts/deploy/publish-developer-extension.ts

step-7_create-github-release:
needs:
- step-6_publish-developer-extension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: add when: manual, else the release will be created as soon as we reach the "deploy" stage, without waiting for anything to finish.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thank you!

stage: deploy
extends:
- .base-configuration
Expand Down
9 changes: 6 additions & 3 deletions scripts/deploy/deploy-prod-dc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ const GATE_INTERVAL = ONE_MINUTE_IN_SECOND

const version: string = process.argv[2]
const uploadPath: string = process.argv[3]
const withGateMonitors: boolean = process.argv[4] === 'true'
const withMonitorChecks: boolean = process.argv[4] === 'true'

runMain(async () => {
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
if (withMonitorChecks) {
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
}

command`node ./scripts/deploy/deploy.ts prod ${version} ${uploadPath}`.withLogs().run()
command`node ./scripts/deploy/upload-source-maps.ts ${version} ${uploadPath}`.withLogs().run()

if (withGateMonitors && uploadPath !== 'root') {
if (withMonitorChecks && uploadPath !== 'root') {
await gateMonitors(uploadPath)
}
})
Expand Down