polyci 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +3 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -356,6 +356,9 @@ function appendModuleDeployJob(lines, module) {
356
356
  lines.push(` MODULE_TYPE: ${module.moduleType}`);
357
357
  lines.push(` script:`);
358
358
  lines.push(` - source $MODULE_PATH/deploy.env`);
359
+ lines.push(` - export INSTANCE_HOST`);
360
+ lines.push(` - export INSTANCE_CONTAINER `);
361
+ lines.push(` - export INSTANCE_VERSION`);
359
362
  lines.push(` - apk add --update --no-cache openssh-client-default`);
360
363
  lines.push(` - eval $(ssh-agent -s)`);
361
364
  lines.push(` - echo "$DEPLOY_USER_KEY" | tr -d '\\r' | ssh-add -`);
@@ -365,7 +368,6 @@ function appendModuleDeployJob(lines, module) {
365
368
  lines.push(` - chmod 644 ~/.ssh/known_hosts`);
366
369
  lines.push(` - echo -n $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY`);
367
370
  lines.push(` - docker context create remote --docker "host=ssh://$DEPLOY_USER@$DEPLOY_ADDRESS:$DEPLOY_PORT"`);
368
- // lines.push(` - docker context use remote`);
369
371
  lines.push(` - cd ci`);
370
372
  lines.push(` - export DOCKER_API_VERSION=1.41`);
371
373
  lines.push(` - docker --context remote compose -p $INSTANCE_CONTAINER down --remove-orphans`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "polyci",
3
3
  "description": "Monorepo CI/CD utilities.",
4
- "version": "0.0.20",
4
+ "version": "0.0.21",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Alexander Tsarev",