parent
03d7eb99b3
commit
ec12a3c2a0
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -7,6 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GIT_SERVER: devops.lty.name
|
||||
DEPLOY_USER: static-deploy
|
||||
DEPLOY_SERVER: copy.lty.name
|
||||
DEPLOY_SERVER_KEY: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBKn1tARbrf+klrF31iN1Q0otmL1AvDDI87kC7HLo5ix
|
||||
DEPLOY_TARGET: homepage
|
||||
@ -26,4 +27,4 @@ jobs:
|
||||
mkdir -p ~/.ssh && touch ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
|
||||
echo ${{ secrets.DEPLOY_SSH_KEY }} | base64 -d > ~/.ssh/id_ed25519
|
||||
echo ${{ secrets.DEPLOY_SERVER }} ${{ env.DEPLOY_SERVER_KEY }} > ~/.ssh/known_hosts
|
||||
rsync -avz --delete ./dist/ ${{ env.DEPLOY_SERVER }}:~/${{ env.DEPLOY_TARGET }}/
|
||||
rsync -avz --delete ./dist/ ${{ env.DEPLOY_USER }}@${{ env.DEPLOY_SERVER }}:~/${{ env.DEPLOY_TARGET }}/
|
||||
|
Loading…
x
Reference in New Issue
Block a user