Update cicd
This commit is contained in:
parent
b8fef5d0af
commit
33ab11d701
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
|
Binary file not shown.
|
@ -1,16 +0,0 @@
|
|||
name: Обновление сайта базы знаний
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
site_update:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Обновляю сайт
|
||||
run: |
|
||||
docker container restart "$CONTAINER_ID"
|
||||
env:
|
||||
TOKEN: ${{ secrets.CONTAINER_ID }}
|
Loading…
Reference in New Issue