commit 06dfa18efa5cf2873187106ba20168e88ad4a543 Author: LeterZP Date: Sat May 16 23:34:23 2026 +0300 Added all files needed diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..5285afa --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,34 @@ +name: What is this shit? + +on: + push: + branches: + - main + +jobs: + pulling: + + name: Pull repo + runs-on: ubuntu-latest + + container: + image: ddockera/alpine-git-ssh + volumes: + - /mnt/host/c/Apps/Programs/Docker/project:/workspace/LeterZP/project # путь поменяется по мере деплоя + + defaults: + run: + working-directory: /workspace/LeterZP/project + + + + steps: + - name: pull changes to destination repo + env: + GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" + run: | + mkdir -p ~/.ssh + echo "${{ secrets.RUNNER_SSH_KEY }}"> ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + git fetch origin main + git reset --hard origin/main \ No newline at end of file diff --git a/Test-file b/Test-file new file mode 100644 index 0000000..6333476 Binary files /dev/null and b/Test-file differ diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..d733f3f Binary files /dev/null and b/config.yaml differ diff --git a/data/.runner b/data/.runner new file mode 100644 index 0000000..f166ee8 --- /dev/null +++ b/data/.runner @@ -0,0 +1,14 @@ +{ + "WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.", + "id": 1, + "uuid": "46e07cdd-92b5-4824-8caf-709494cf120d", + "name": "standard_runner", + "token": "bf149c267963785448dc9b41ba95302ef6d8ed2e", + "address": "https://gitea.aklivtsov.tech/", + "labels": [ + "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest", + "ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04", + "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04" + ], + "ephemeral": false +} diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..69d7878 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,13 @@ +services: + runner: + image: docker.io/gitea/act_runner:latest + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: https://gitea.aklivtsov.tech/ + GITEA_RUNNER_REGISTRATION_TOKEN: "C67eFmGfmFK5IJgAOGRNXRluDllRQCIu7Ok1Zzhw" # ключ зависит от раннера + GITEA_RUNNER_NAME: "standard_runner" + volumes: + - ./config.yaml:/config.yaml + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock + diff --git a/gitea/runner/config.yaml b/gitea/runner/config.yaml new file mode 100644 index 0000000..bae4778 Binary files /dev/null and b/gitea/runner/config.yaml differ