aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2019-01-14 22:24:00 +0800
committerFabio Berger <me@fabioberger.com>2019-01-14 22:24:00 +0800
commit84163517c600ff64e0d6ece4ecba40a8aeb52d73 (patch)
treea906b6f1d2d137a7175e54bb09da6796a7d4dfb6 /packages/monorepo-scripts/src/publish.ts
parent96ff5eef644b8c4d3f8fc4ec53270991fb51f121 (diff)
downloaddexon-0x-contracts-84163517c600ff64e0d6ece4ecba40a8aeb52d73.tar.gz
dexon-0x-contracts-84163517c600ff64e0d6ece4ecba40a8aeb52d73.tar.zst
dexon-0x-contracts-84163517c600ff64e0d6ece4ecba40a8aeb52d73.zip
Add additional check to make sure user was added to our DockerHub org
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 4a22df544..105d87dcd 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -22,7 +22,6 @@ import { utils } from './utils/utils';
const NPM_NAMESPACE = '@0x/';
const TODAYS_TIMESTAMP = moment().unix();
-const DOCKER_ORG = '0xorg';
async function confirmAsync(message: string): Promise<void> {
prompt.start();
@@ -130,13 +129,13 @@ async function publishImagesToDockerHubAsync(allUpdatedPackages: Package[]): Pro
// Tag the docker image with the latest version
const version = pkg.packageJson.version;
logUtils.log(`Tagging '${dockerHubRepo}' docker image with version ${version}...`);
- await execAsync(`docker tag ${dockerHubRepo} ${DOCKER_ORG}/${dockerHubRepo}:${version}`);
- await execAsync(`docker tag ${dockerHubRepo} ${DOCKER_ORG}/${dockerHubRepo}:latest`);
+ await execAsync(`docker tag ${dockerHubRepo} ${configs.DOCKER_HUB_ORG}/${dockerHubRepo}:${version}`);
+ await execAsync(`docker tag ${dockerHubRepo} ${configs.DOCKER_HUB_ORG}/${dockerHubRepo}:latest`);
// Publish to DockerHub
logUtils.log(`Pushing '${dockerHubRepo}' docker image to DockerHub...`);
- await execAsync(`docker push ${DOCKER_ORG}/${dockerHubRepo}:${version}`);
- await execAsync(`docker push ${DOCKER_ORG}/${dockerHubRepo}:latest`);
+ await execAsync(`docker push ${configs.DOCKER_HUB_ORG}/${dockerHubRepo}:${version}`);
+ await execAsync(`docker push ${configs.DOCKER_HUB_ORG}/${dockerHubRepo}:latest`);
}
}