diff --git a/.gitea/worker.gpg b/.gitea/worker.gpg deleted file mode 100644 index db351d6..0000000 Binary files a/.gitea/worker.gpg and /dev/null differ diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml deleted file mode 100644 index 5b050ae..0000000 --- a/.gitea/workflows/pipeline.yml +++ /dev/null @@ -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 }} diff --git a/.gitea/workflows/update.yml b/.gitea/workflows/update.yml new file mode 100644 index 0000000..f3d615e --- /dev/null +++ b/.gitea/workflows/update.yml @@ -0,0 +1,16 @@ +name: Обновление базы + +on: + push: + branches: + - main + +jobs: + restart-container: + runs-on: self-hosted + steps: + - name: Обновляю сайт + environment: + CONTAINER_NAME: ${{ secrets.CONTAINER_ID }} + run: | + docker restart "${CONTAINER_NAME}"