Files
me/.drone.yml
Giovanni Rezcjikov dd3def00cc
All checks were successful
continuous-integration/drone/push Build is passing
feat: increased security
2026-02-21 21:33:41 +03:00

47 lines
1007 B
YAML

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: 3000
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: /opt/drone/me
trigger:
branch:
- main