Skip to content

Commit

Permalink
Merge pull request #61 from avisi-apps/feature/60-accommodate-for-gcl…
Browse files Browse the repository at this point in the history
…oud-projects-being-able-to-host-multiple-dare-regions

Dare migrations module: Accommodate for projects being able to host multiple dare-regions
  • Loading branch information
YabMas authored Feb 22, 2024
2 parents 088c6ef + c3fc0c5 commit 2c122f5
Showing 1 changed file with 8 additions and 7 deletions.
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

0 comments on commit 2c122f5

Please sign in to comment.