SiteKB/.drone.yml

27 lines
482 B
YAML
Raw Normal View History

2024-11-05 20:30:09 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: Обновляю сайт
image: docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
CONTAINER_NAME:
from_secret: CONTAINER_ID
commands:
- echo "Restarting Docker container: ${CONTAINER_NAME}"
- docker restart "${CONTAINER_NAME}"
trigger:
branch:
- main
volumes:
- name: dockersock
host:
path: /var/run/docker.sock