27 lines
482 B
YAML
27 lines
482 B
YAML
|
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
|
||
|
|