20 lines
386 B
YAML
20 lines
386 B
YAML
|
pipelines:
|
||
|
default:
|
||
|
- name: Обновляю сайт
|
||
|
image: docker:latest
|
||
|
services:
|
||
|
- docker
|
||
|
commands:
|
||
|
- docker restart "$CONATAINER_ID"
|
||
|
when:
|
||
|
branch:
|
||
|
- main
|
||
|
env:
|
||
|
TOKEN: ${{ secrets.CONTAINER_ID }}
|
||
|
|
||
|
services:
|
||
|
docker:
|
||
|
image: docker:latest
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|