mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 02:57:12 -05:00
Merge commit 'ada9006b1d2e73bc72267f4a7e6c34d5fb333b12'
This commit is contained in:
21
.github/workflows/deploy-all.yml
vendored
21
.github/workflows/deploy-all.yml
vendored
@@ -1,4 +1,5 @@
|
||||
name: Deploy All Services
|
||||
name: Deploy BlackRoad OS
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -7,6 +8,9 @@ on:
|
||||
description: "Optional service id to deploy"
|
||||
required: false
|
||||
type: string
|
||||
description: "Optional service id to deploy (core, api, operator, agents, console, web, docs)"
|
||||
required: false
|
||||
default: ""
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -25,6 +29,14 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18"
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
@@ -34,5 +46,14 @@ jobs:
|
||||
if [ -n "${{ github.event.inputs.serviceId }}" ]; then
|
||||
npm run deploy:service -- ${{ github.event.inputs.serviceId }}
|
||||
else
|
||||
- name: Deploy
|
||||
env:
|
||||
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||
run: |
|
||||
if [ -n "${{ github.event.inputs.serviceId }}" ]; then
|
||||
echo "Deploying single service: ${{ github.event.inputs.serviceId }}"
|
||||
npm run deploy:service -- ${{ github.event.inputs.serviceId }}
|
||||
else
|
||||
echo "Deploying all services"
|
||||
npm run deploy:all
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user