Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 1212dd29 authored by Fazle Rabbi's avatar Fazle Rabbi 💬
Browse files

add checkout deployment

parent 679f1d7a
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -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: