init
This commit is contained in:
0
.gitea/workflows/rooted/api.yaml
Normal file
0
.gitea/workflows/rooted/api.yaml
Normal file
0
.gitea/workflows/rooted/db/backup.yaml
Normal file
0
.gitea/workflows/rooted/db/backup.yaml
Normal file
0
.gitea/workflows/rooted/db/deploy.yaml
Normal file
0
.gitea/workflows/rooted/db/deploy.yaml
Normal file
45
.gitea/workflows/rooted/web.yaml
Normal file
45
.gitea/workflows/rooted/web.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Rooted - Base Web Deployment
|
||||
|
||||
inputs:
|
||||
BRANCH:
|
||||
description: "Branch to deploy for this job"
|
||||
required: false
|
||||
default: ${{ gitea.ref_name }}
|
||||
MONGO_URI:
|
||||
description: "MongoDB URI to use for this instance"
|
||||
required: true
|
||||
DB_NAME:
|
||||
description: "MongoDB database to target"
|
||||
required: true
|
||||
default: "rooted_db_dev"
|
||||
NEXTAUTH_SECRET:
|
||||
description: "NextAuth secret to use for this instance"
|
||||
required: false
|
||||
default: ${{ secrets.NEXTAUTH_SECRET }}
|
||||
|
||||
env:
|
||||
MONGO_URI: $INPUT_MONGO_URI
|
||||
DB_NAME: $INPUT_DB_NAME
|
||||
GCP_CLIENT_ID: ${{ secrets.GCP_CLIENT_ID }}
|
||||
GCP_CLIENT_SECRET: ${{ secrets.GCP_CLIENT_SECRET }}
|
||||
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: node:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: $BRANCH
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
cd Rooted/Rooted.Web && npm install
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd Rooted/Rooted.Web && npm run build
|
||||
Reference in New Issue
Block a user