You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
406 B

  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: deploy
  6. image: docker:dind
  7. commands:
  8. - apk add --upgrade npm bash findutils rsync sed
  9. - WORKDIR="/var/docker-web/apps/$DRONE_REPO_NAME"
  10. - rm -rf $WORKDIR
  11. - mkdir $WORKDIR
  12. - rsync -av --exclude ./node_modules /drone/src/ $WORKDIR
  13. - cd $WORKDIR
  14. - npm ci
  15. - bash /var/docker-web/src/cli.sh up $DRONE_REPO_NAME