This commit is contained in:
valere
2024-08-18 18:47:15 +02:00
commit 24e7bb58fa
25 changed files with 8926 additions and 0 deletions

31
.drone.yml Normal file
View File

@@ -0,0 +1,31 @@
kind: pipeline
type: docker
name: default
steps:
- name: deploy
image: docker:dind
volumes:
- name: docker
path: /var/run/docker.sock
- name: docker-web
path: /root/docker-web
commands:
- apk add --upgrade npm bash findutils rsync sed
- source /root/docker-web/config.sh
- WORKDIR="/root/docker-web/apps/$DRONE_REPO_NAME"
- rm -rf $WORKDIR
- mkdir $WORKDIR
- rsync -av --exclude ./node_modules /drone/src/ $WORKDIR
- cd $WORKDIR
- npm install
- sed -i "/MEDIA_DIR/d" .env
- bash /root/docker-web/src/cli.sh up $DRONE_REPO_NAME
volumes:
- name: dockerweb
host:
path: /root/docker-web
- name: docker
host:
path: /var/run/docker.sock