polyci 0.0.15 → 0.0.17
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 +5 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -332,6 +332,7 @@ function appendModulePublishJob(lines, module) {
|
|
|
332
332
|
lines.push(` - cp ci/$MODULE_TYPE/Dockerfile $MODULE_PATH`);
|
|
333
333
|
lines.push(` - cd $MODULE_PATH`);
|
|
334
334
|
lines.push(` - source deploy.env`);
|
|
335
|
+
lines.push(` - echo -n $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY`);
|
|
335
336
|
lines.push(` - docker build --tag $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION .`);
|
|
336
337
|
lines.push(` - docker push $CI_REGISTRY_IMAGE/$MODULE_NAME:v$INSTANCE_VERSION`);
|
|
337
338
|
lines.push(` artifacts:`);
|
|
@@ -363,11 +364,11 @@ function appendModuleDeployJob(lines, module) {
|
|
|
363
364
|
lines.push(` - chmod 644 ~/.ssh/known_hosts`);
|
|
364
365
|
lines.push(` - echo -n $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY`);
|
|
365
366
|
lines.push(` - docker context create remote --docker "host=ssh://$DEPLOY_USER@$DEPLOY_ADDRESS:$DEPLOY_PORT"`);
|
|
366
|
-
lines.push(` - docker context use remote`);
|
|
367
|
+
// lines.push(` - docker context use remote`);
|
|
367
368
|
lines.push(` - cd ci`);
|
|
368
|
-
lines.push(` - docker compose -p $INSTANCE_CONTAINER down --remove-orphans`);
|
|
369
|
-
lines.push(` - docker compose pull`);
|
|
370
|
-
lines.push(` - docker compose -p $INSTANCE_CONTAINER up -d`);
|
|
369
|
+
lines.push(` - docker --context remote compose -p $INSTANCE_CONTAINER down --remove-orphans`);
|
|
370
|
+
lines.push(` - docker --context remote compose pull`);
|
|
371
|
+
lines.push(` - docker --context remote compose -p $INSTANCE_CONTAINER up -d`);
|
|
371
372
|
lines.push(` - rm -rf ~/.ssh`);
|
|
372
373
|
lines.push(``);
|
|
373
374
|
}
|