From 6277be8c016b55f1a4c8219fbe961cbeaec6846a Mon Sep 17 00:00:00 2001 From: Philipp Beckmann <71174645+pb-coding@users.noreply.github.com> Date: Mon, 23 Oct 2023 22:08:06 +0200 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5e5d768..663ea4a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,10 +34,14 @@ jobs: steps: - uses: actions/checkout@v3 - uses: appleboy/ssh-action@v1.0.0 - name: Execute deploy script on host + name: Fetch and run deploy script on remote with: host: ${{ secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} key: ${{ secrets.DEPLOY_KEY }} 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