used github config and i guess it doesn't work with gitea?
This commit is contained in:
@@ -38,12 +38,12 @@ jobs:
|
|||||||
docker push git.${{ secrets.DOMAIN }}/${{ secrets.REGISTRY_USER }}/testapp:latest
|
docker push git.${{ secrets.DOMAIN }}/${{ secrets.REGISTRY_USER }}/testapp:latest
|
||||||
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
uses: appleboy/ssh-action@v1
|
run: |
|
||||||
with:
|
mkdir -p ~/.ssh
|
||||||
host: ${{ secrets.DEPLOY_HOST }}
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/key
|
||||||
username: ${{ secrets.DEPLOY_USER }}
|
chmod 600 ~/.ssh/key
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
||||||
script: |
|
|
||||||
cd ~/programs/testapp
|
ssh -i ~/.ssh/key \
|
||||||
docker compose pull
|
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} \
|
||||||
docker compose up -d --remove-orphans
|
"cd ~/programs/testapp && docker compose pull && docker compose up -d"
|
||||||
|
|||||||
Reference in New Issue
Block a user