fix: define SDC_ACCOUNT

This commit is contained in:
Sérgio Ramos 2017-05-31 17:57:57 +01:00
parent ead66d38e6
commit a44c12dcdd
1 changed files with 4 additions and 4 deletions

View File

@ -16,12 +16,12 @@ const ROOT = path.join(__dirname, '..');
const LOG = console.log;
const createTritonProfile = async () => {
const { SDC_ACCOUNT = '', SDC_KEY_ID = '' } = process.env;
LOG(
`${figures.arrowRight} create triton profile SDC_ACCOUNT=${SDC_ACCOUNT.length} SDC_KEY_ID=${SDC_KEY_ID.length}`
);
const { SDC_ACCOUNT = '', SDC_KEY_ID = '' } = process.env;
const payload = JSON.stringify({
url: 'https://eu-ams-1.api.joyent.com',
account: SDC_ACCOUNT,
@ -72,10 +72,10 @@ const login = async () => {
};
const build = async () => {
const { CIRCLE_BRANCH } = process.env;
LOG(`${figures.arrowRight} build`);
const { CIRCLE_BRANCH } = process.env;
const dockerfiles = await globby(['packages/*/Dockerfile'], {
cwd: ROOT
});