add ssh
Deploy Website / build (push) Failing after 19s
Details
Deploy Website / build (push) Failing after 19s
Details
This commit is contained in:
parent
e28a6e1f28
commit
a5e471825e
|
@ -8,44 +8,39 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: check out repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: check out repo
|
# - name: install python+pip
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# - name: install python+pip
|
|
||||||
# run: |
|
|
||||||
# apt-get update -y
|
|
||||||
# apt-get install -y python3 python3-pip
|
|
||||||
|
|
||||||
# - name: setup bstools
|
|
||||||
# run: pip install --index-url https://git.jamesravey.me/api/packages/ravenscroftj/pypi/simple/ bstools
|
|
||||||
|
|
||||||
- name: Deploy Site
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh/
|
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
|
||||||
chmod 600 ~/.ssh/id_rsa
|
|
||||||
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
|
||||||
ssh \
|
|
||||||
-i ~/.ssh/id_rsa \
|
|
||||||
-t james@noprobe.rvns.xyz \
|
|
||||||
"cd /data/applications/brainsteam.co.uk; git pull; cd brainsteam; ./build.sh"
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
|
||||||
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Deploy Notes
|
|
||||||
# run: |
|
# run: |
|
||||||
# mkdir -p ~/.ssh/
|
# apt-get update -y
|
||||||
# echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
# apt-get install -y python3 python3-pip
|
||||||
# chmod 600 ~/.ssh/id_rsa
|
# - name: setup bstools
|
||||||
# echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
# run: pip install --index-url https://git.jamesravey.me/api/packages/ravenscroftj/pypi/simple/ bstools
|
||||||
# ssh -i ~/.ssh/id_rsa -t james@newprobe.jamesravey.me "cd /home/james/foam-mkdocs-publish; ./build.sh"
|
- name: Deploy Site
|
||||||
# shell: bash
|
run: |
|
||||||
# env:
|
apt install -y openssh-client
|
||||||
# SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
mkdir -p ~/.ssh/
|
||||||
# SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||||
|
ssh \
|
||||||
|
-i ~/.ssh/id_rsa \
|
||||||
|
-t james@noprobe.rvns.xyz \
|
||||||
|
"cd /data/applications/brainsteam.co.uk; git pull; cd brainsteam; ./build.sh"
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
||||||
|
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||||
|
|
||||||
|
# - name: Deploy Notes
|
||||||
|
# run: |
|
||||||
|
# mkdir -p ~/.ssh/
|
||||||
|
# echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
|
# chmod 600 ~/.ssh/id_rsa
|
||||||
|
# echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||||
|
# ssh -i ~/.ssh/id_rsa -t james@newprobe.jamesravey.me "cd /home/james/foam-mkdocs-publish; ./build.sh"
|
||||||
|
# shell: bash
|
||||||
|
# env:
|
||||||
|
# SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
||||||
|
# SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||||
|
|
Loading…
Reference in New Issue