polyci 0.0.14 → 0.0.16

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 +2 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -329,12 +329,10 @@ function appendModulePublishJob(lines, module) {
329
329
  lines.push(` MODULE_PATH: ${module.modulePath}`);
330
330
  lines.push(` MODULE_TYPE: ${module.moduleType}`);
331
331
  lines.push(` script:`);
332
- lines.push(` - cp -r ci $MODULE_PATH/ci`);
332
+ lines.push(` - cp ci/$MODULE_TYPE/Dockerfile $MODULE_PATH`);
333
333
  lines.push(` - cd $MODULE_PATH`);
334
- lines.push(` - cat deploy.env`);
335
334
  lines.push(` - source deploy.env`);
336
- lines.push(` - npm ci`);
337
- lines.push(` - cp ci/$MODULE_TYPE/Dockerfile .`);
335
+ lines.push(` - echo -n $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY`);
338
336
  lines.push(` - docker build --tag $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION .`);
339
337
  lines.push(` - docker push $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION`);
340
338
  lines.push(` artifacts:`);
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.14",
4
+ "version": "0.0.16",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Alexander Tsarev",