chore: internal deploy workflow

This commit is contained in:
Methapon Metanipat 2024-08-19 16:43:40 +07:00
parent b43ead6cf2
commit 0f78be2393
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,22 @@
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-frontend
git pull
docker compose up -d --build

22
.github/workflows/local-release-dev.yml vendored Normal file
View file

@ -0,0 +1,22 @@
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-frontend
git pull
docker compose up -d --build