Update deploy.yml

This commit is contained in:
Philipp Beckmann 2023-10-23 22:08:06 +02:00 committed by GitHub
parent 1f3d045f93
commit 6277be8c01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,10 +34,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: appleboy/ssh-action@v1.0.0 - uses: appleboy/ssh-action@v1.0.0
name: Execute deploy script on host name: Fetch and run deploy script on remote
with: with:
host: ${{ secrets.DEPLOY_HOST }} host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }} username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }} key: ${{ secrets.DEPLOY_KEY }}
port: 22 port: 22
script: ~/deployments/github-pb-coding-skyjo-fe-deploy.sh ${{ secrets.DOCKER_REGISTRY_TOKEN }} script: |
curl -O https://raw.githubusercontent.com/pb-coding/skyjo-fe/main/.github/scripts/deploy.sh
chmod +x deploy.sh
./deploy.sh ${{ secrets.DOCKER_REGISTRY_TOKEN }}
rm deploy.sh