Skip to content

Commit

Permalink
Merge pull request #35 from JoinColony/new-env-image-build-refactor
Browse files Browse the repository at this point in the history
Add parallel request for new QA env
  • Loading branch information
bogdan-1337 authored Oct 28, 2022
2 parents e6719f1 + f01e123 commit 53f1f31
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/deployments.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,21 @@ module.exports = async function(robot) {
if (msg.match[3]){
formData['client_payload']["DEV"] = "true";
}

const repo = msg.match[1] === "frontend" ? "colonyDapp" : "colonyServer"

await request({
method: 'POST',
uri: `https://api.github.com/repos/joinColony/${repo}/dispatches`,
keepAlive: false,
body: JSON.stringify(formData),
headers:{
"Accept": "application/vnd.github.everest-preview+json",
"Authorization": `token ${process.env.HUBOT_GITHUB_TOKEN}`,
"User-Agent": "JoinColony/chewie",
}
});

await request({
method: 'POST',
uri: `https://api.github.com/repos/joinColony/colony-deployment-scripts/dispatches`,
Expand Down

0 comments on commit 53f1f31

Please sign in to comment.