This commit is contained in:
@@ -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
|
||||||
BIN
Binary file not shown.
@@ -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
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user