Update cicd
Обновление базы / restart-container (push) Failing after 2m6s Details

This commit is contained in:
trueold89 2024-11-05 23:30:09 +03:00
parent b8fef5d0af
commit 12f5fb8912
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
3 changed files with 16 additions and 16 deletions

Binary file not shown.

View File

@ -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 }}

View File

@ -0,0 +1,16 @@
name: Обновление базы
on:
push:
branches:
- main
jobs:
restart-container:
runs-on: ubuntu-latest
steps:
- name: Обновляю сайт
environment:
CONTAINER_NAME: ${{ secrets.CONTAINER_ID }}
run: |
docker restart "${CONTAINER_NAME}"