diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f19c83f --- /dev/null +++ b/.drone.yml @@ -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 + 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 }}