add first part of deploy action
This commit is contained in:
parent
adcc4354e8
commit
2a05284b05
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/deploy.yml
Normal file
24
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker.io/alpine:3.21.2
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: install needed packages
|
||||
run: apk update && apk add --no-cache rsync openssh-client
|
||||
- name: install ssh key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_RPIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p "${{ vars.SSH_PORT }}" -H "${{ vars.SSH_HOST }}" > ~/.ssh/known_hosts
|
||||
- name: test
|
||||
run: |
|
||||
env
|
||||
ls $GITHUB_WORKSPACE
|
||||
|
Loading…
Reference in a new issue