prepush hooks
This commit is contained in:
@@ -34,6 +34,29 @@ jobs:
|
||||
image: gitbase.de/robin/live-server:latest
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Load .env file
|
||||
run: |
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
|
||||
- name: Initialize database
|
||||
run: node /.gitea/actions/init-db
|
||||
env:
|
||||
PROJECT_API_NAMESPACE: $TIBI_NAMESPACE
|
||||
MONGODB_URI: mongodb://mongo #service name!
|
||||
TIBI_DB_PREFIX: $TIBI_PREFIX
|
||||
TIBI_API_URL: http://tibi-server:8080/api/v1
|
||||
|
||||
|
||||
deploy:
|
||||
name: deploy
|
||||
|
||||
Reference in New Issue
Block a user