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
|
||||
Reference in New Issue
Block a user