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..24e044f --- /dev/null +++ b/.gitea/workflows/update.yml @@ -0,0 +1,19 @@ +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