Use deploy SSH key secret #5
1 changed files with 3 additions and 6 deletions
|
|
@ -9,19 +9,16 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
container:
|
|
||||||
image: node:26-bookworm
|
|
||||||
volumes:
|
|
||||||
- /data/docker/forgejo-runner/data:/runner-data:ro
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy on WebApps
|
- name: Deploy on WebApps
|
||||||
|
env:
|
||||||
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y openssh-client
|
apt-get install -y openssh-client
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
cp /runner-data/forgejo-runner.key ~/.ssh/id_ed25519
|
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=no \
|
ssh -o StrictHostKeyChecking=no \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue