chore(ci/cd): add local ci/cd workflow
All checks were successful
Build / build (push) Successful in 30s

This commit is contained in:
Methapon2001 2025-09-09 14:25:37 +07:00
parent cbc7757353
commit bf0cb09b4a
2 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,29 @@
name: Build
on:
workflow_dispatch:
inputs:
version:
description: "Version to deploy"
type: string
required: false
default: "latest"
env:
IMAGE_VERSION: build
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Remote Deploy
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ vars.SSH_DEPLOY_HOST }}
port: ${{ vars.SSH_DEPLOY_PORT }}
username: ${{ secrets.SSH_DEPLOY_USER }}
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
script: |
cd ~/repo
./replace-env.sh APP_EDM "${{ inputs.version }}"
./deploy.sh hrms-edm