Skip to content

Updated worflows

Updated worflows #2

Workflow file for this run

name: Deploying to VPS
on:
push:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Deploy 🚀
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
username: ${{ secrets.SSH_USER }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
cd ./deploy-main/${{ github.event.repository.name }}
git pull
docker container rm -f cyscom-opensrc || true
docker image rm -f cyscom-opensrc || true
docker build -t cyscom-opensrc --quiet .
docker run -d \
--name cyscom-opensrc \
-p 5000:5000 \
--env-file ./../.env.web \
cyscom-opensrc