Update cicd
This commit is contained in:
parent
b8fef5d0af
commit
48c2562ecd
|
@ -0,0 +1,23 @@
|
|||
pipelines:
|
||||
default:
|
||||
- name: Обновляю сайт
|
||||
image: docker:latest
|
||||
services:
|
||||
- docker
|
||||
commands:
|
||||
- docker restart "$CONATAINER_ID"
|
||||
env:
|
||||
TOKEN: ${{ secrets.CONTAINER_ID }}
|
||||
|
||||
actions:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pipelines:
|
||||
- default
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
@ -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