polyci 0.0.13 → 0.0.15
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.
- package/dist/main.js +2 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -300,7 +300,7 @@ function appendGlobalReleaseJob(lines, modules, mainBranch, tagTemplate, branchT
|
|
|
300
300
|
lines.push(` for TAG_NAME in \${TAG_NAMES}; do`);
|
|
301
301
|
lines.push(` git tag "\${TAG_NAME}"`);
|
|
302
302
|
lines.push(` done`);
|
|
303
|
-
lines.push(` git push origin "HEAD:refs/heads/\${CI_COMMIT_BRANCH
|
|
303
|
+
lines.push(` git push origin "HEAD:refs/heads/\${CI_COMMIT_BRANCH:-\${CI_COMMIT_REF_NAME}}"`);
|
|
304
304
|
lines.push(` git push origin --tags`);
|
|
305
305
|
lines.push(` else`);
|
|
306
306
|
lines.push(` echo "No new tags created; skipping commit/push"`);
|
|
@@ -329,12 +329,9 @@ 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
|
|
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 .`);
|
|
338
335
|
lines.push(` - docker build --tag $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION .`);
|
|
339
336
|
lines.push(` - docker push $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION`);
|
|
340
337
|
lines.push(` artifacts:`);
|