Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhil56x committed Jan 20, 2024
1 parent 7ef13c3 commit 3839cea
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/deployment.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 \
--restart=always \
--env-file ./../.env.web \
cyscom-opensrc

0 comments on commit 3839cea

Please sign in to comment.