Update deploy.yml
This commit is contained in:
parent
1f3d045f93
commit
6277be8c01
1 changed files with 6 additions and 2 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue