Loading .gitlab-ci.yml +5 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,9 @@ stages: include: - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: dev/template file: "nc-apps-deploy.yml" ref: dev/nc-apps-checkout-deploy file: "nc-apps-checkout-deploy.yml" .deploy:nextcloud-app: .deploy:nextcloud-app-by-checkout: stage: deploy script: # overriding script as all it needs is clone, copy and chown # print var to confirm - echo "Deploying to $CI_ENVIRONMENT_NAME ($DEPLOYMENT_HOST)" - ssh $SSH_USER@$DEPLOYMENT_HOST "git clone --depth 1 $CI_REPOSITORY_URL --branch $DEPLOYMENT_BRANCH --single-branch /tmp/${CI_JOB_ID}/rainloop && sudo rsync -avzh --chown www-data:www-data --delete --exclude '.git*' /tmp/${CI_JOB_ID}/rainloop ${DEPLOYMENT_PATH}/html/custom_apps/ && rm -rf /tmp/${CI_JOB_ID} && rm -rf ${DEPLOYMENT_PATH}/data/rainloop-storage/_data_/_default_/cache/*" No newline at end of file variables: Loading
.gitlab-ci.yml +5 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,9 @@ stages: include: - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: dev/template file: "nc-apps-deploy.yml" ref: dev/nc-apps-checkout-deploy file: "nc-apps-checkout-deploy.yml" .deploy:nextcloud-app: .deploy:nextcloud-app-by-checkout: stage: deploy script: # overriding script as all it needs is clone, copy and chown # print var to confirm - echo "Deploying to $CI_ENVIRONMENT_NAME ($DEPLOYMENT_HOST)" - ssh $SSH_USER@$DEPLOYMENT_HOST "git clone --depth 1 $CI_REPOSITORY_URL --branch $DEPLOYMENT_BRANCH --single-branch /tmp/${CI_JOB_ID}/rainloop && sudo rsync -avzh --chown www-data:www-data --delete --exclude '.git*' /tmp/${CI_JOB_ID}/rainloop ${DEPLOYMENT_PATH}/html/custom_apps/ && rm -rf /tmp/${CI_JOB_ID} && rm -rf ${DEPLOYMENT_PATH}/data/rainloop-storage/_data_/_default_/cache/*" No newline at end of file variables: