Skip to content

Commit

Permalink
feat: adds app start workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
migtarx committed Jul 29, 2024
1 parent 6a940ea commit 062ca66
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/start.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Start
run-name: ${{ inputs.start_env }} server start
on:
workflow_dispatch:
inputs:
start_env:
type: choice
default: PRODUCTION
description: start enviroment
options:
- PRODUCTION

jobs:
start:
name: ${{ github.event.inputs.start_env }} server start
runs-on: [self-hosted, linux, x64, "${{ github.event.inputs.start_env }}"]
steps:
- name: ${{ github.event.inputs.start_env }} app start
run: PORT=${{ secrets.PORT }} STATUS_SERVER_IP=${{ secrets.STATUS_SERVER_IP }} FF_URL=${{ secrets.FF_URL }} FF_PASWD=${{ secrets.FF_PASWD }} pm2 start npm --name "BLOG" -- start --log-date-format 'DD-MM-YYYY HH:mm:ss'

0 comments on commit 062ca66

Please sign in to comment.