feat: add workflow for local lan deploy
This commit is contained in:
parent
f4723e4335
commit
75359a8d4e
2 changed files with 48 additions and 0 deletions
24
.github/workflows/local-release-demo.yaml
vendored
Normal file
24
.github/workflows/local-release-demo.yaml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: local-release-demo
|
||||
|
||||
# Intended for local network use.
|
||||
# Remote access is possible if the host has a public IP address.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
local-release-demo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Remote deploy internal chamomind server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
script: |
|
||||
cd ~/repositories/jws-backend
|
||||
git pull
|
||||
docker compose up -d --build
|
||||
sleep 1
|
||||
docker compose logs -n 100
|
||||
24
.github/workflows/local-release-dev.yaml
vendored
Normal file
24
.github/workflows/local-release-dev.yaml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: local-release-dev
|
||||
|
||||
# Intended for local network use.
|
||||
# Remote access is possible if the host has a public IP address.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
local-release-dev:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Remote deploy internal chamomind server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
script: |
|
||||
cd ~/repositories/jws-backend
|
||||
git pull
|
||||
docker compose up -d --build
|
||||
sleep 1
|
||||
docker compose logs -n 100
|
||||
Loading…
Add table
Add a link
Reference in a new issue