Skip to content

Commit

Permalink
ci deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed Jun 10, 2024
1 parent 1bfa084 commit 047470d
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,21 @@ jobs:
tags: |
ghcr.io/tbmc/brainfuck_interpreter:latest
ghcr.io/tbmc/brainfuck_interpreter:${{ steps.vars.outputs.sha_short }}
deploy:
name: Deploy to server
runs-on: ubuntu-22.04
needs: [build_and_publish]
if: github.event_name != 'pull_request'
steps:
- name: Run docker pull and up commands
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd ${{ secrets.SERVER_FOLDER_PATH }}
docker compose pull ${{ secrets.DOCKER_SERVICE_NAME }}
docker compose up -d ${{ secrets.DOCKER_SERVICE_NAME }}

0 comments on commit 047470d

Please sign in to comment.