fix: define SDC_ACCOUNT
This commit is contained in:
parent
ead66d38e6
commit
a44c12dcdd
@ -16,12 +16,12 @@ const ROOT = path.join(__dirname, '..');
|
|||||||
const LOG = console.log;
|
const LOG = console.log;
|
||||||
|
|
||||||
const createTritonProfile = async () => {
|
const createTritonProfile = async () => {
|
||||||
|
const { SDC_ACCOUNT = '', SDC_KEY_ID = '' } = process.env;
|
||||||
|
|
||||||
LOG(
|
LOG(
|
||||||
`${figures.arrowRight} create triton profile SDC_ACCOUNT=${SDC_ACCOUNT.length} SDC_KEY_ID=${SDC_KEY_ID.length}`
|
`${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({
|
const payload = JSON.stringify({
|
||||||
url: 'https://eu-ams-1.api.joyent.com',
|
url: 'https://eu-ams-1.api.joyent.com',
|
||||||
account: SDC_ACCOUNT,
|
account: SDC_ACCOUNT,
|
||||||
@ -72,10 +72,10 @@ const login = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const build = async () => {
|
const build = async () => {
|
||||||
const { CIRCLE_BRANCH } = process.env;
|
|
||||||
|
|
||||||
LOG(`${figures.arrowRight} build`);
|
LOG(`${figures.arrowRight} build`);
|
||||||
|
|
||||||
|
const { CIRCLE_BRANCH } = process.env;
|
||||||
|
|
||||||
const dockerfiles = await globby(['packages/*/Dockerfile'], {
|
const dockerfiles = await globby(['packages/*/Dockerfile'], {
|
||||||
cwd: ROOT
|
cwd: ROOT
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user