initial commit
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2026-02-21 19:54:03 +03:00
parent b629f067f8
commit 2d43539dbd
4 changed files with 68 additions and 9 deletions

46
.drone.yml Normal file
View File

@@ -0,0 +1,46 @@
kind: pipeline
type: docker
name: default
steps:
- name: build and push docker image
image: docker:24
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t localhost:5000/me:latest -f dockerfile .
- docker push localhost:5000/me:latest
- name: deploy with compose
image: docker:24
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: appdir
path: /opt/app
environment:
IMAGE: localhost:5000/me:latest
VIRTUAL_HOST: dusiburg.ru
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: dusiburg.ru
LETSENCRYPT_EMAIL:
from_secret: LETSENCRYPT_EMAIL
commands:
- apk add --no-cache docker-cli-compose
- cp -r . /opt/app
- cd /opt/app
- docker compose pull
- docker compose up -d
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: appdir
host:
path: /tmp/drone-me-deploy
trigger:
branch:
- main