Skip to content

Merge pull request #4 from Lindwen/dev #16

Merge pull request #4 from Lindwen/dev

Merge pull request #4 from Lindwen/dev #16

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
environment: prod
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: deploy to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd docker/personnal-website
git pull
docker compose down && docker compose up -d