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

Dare migrations module: Accommodate for projects being able to host multiple dare-regions #61

Merged
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,20 @@
(condp contains? phase
#{"schedule"}
(let [source-project (get-project-id)
[app-name stage _] (->
source-project
(str/split #"-"))
destination-region-label (str/lower-case location)
destination-project (str/join "-" [app-name stage destination-region-label])]
[app-name development-stage source-region] (->
source-project
(str/split #"-"))
destination-region (str/lower-case location)]
(pubsub/publish-message!
migrations-topic
{:attributes
{:tenant tenant
:base_url base-url
:phase phase
:source_project source-project
:destination_project destination-project
:app_name app-name
:development_stage development-stage
:source_region source-region
:destination_region destination-region
:start_time start-time
:end_time end-time}}))
#{"start" "commit" "rollback"}
Expand Down
Loading