From c915b4de3345525f2043150737628adf91852469 Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 5 Dec 2023 16:02:01 +0000 Subject: [PATCH] lighthouse --- .gitea/workflows/deploy.yaml | 39 +++++++++++------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 72eb1b4..7ae3314 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -20,6 +20,18 @@ jobs: # ports: # - 80:80 # - 25:25 + + tibi-server: + image: gitbase.de/cms/tibi-server + ports: + - 8080:8080 + env: + DB_DIAL: mongodb://mongo + API_PORT: 8080 + MAIL_HOST: maildev:25 + SECURITY_ALLOWABSOLUTEPATHS: "true" + SECURITY_ALLOWUPPERPATHS: "true" + SECURITY_ALLOWRELATIVEPATHS: "true" steps: - uses: actions/checkout@v3 with: @@ -38,33 +50,6 @@ jobs: npm install -g yarn yarn install - - name: Clone Live Server Repository - run: | - git clone https://gitbase.de/robin/live-server ./live-server - - - name: Build Live Server Docker Image - run: | - docker build -t liveserver-image -f ./live-server . - - - name: Start Live Server - run: | - docker run -d -p 80:80 liveserver-image - - - name: Clone tibi server Repository - run: | - git clone https://gitbase.de/cms/tibi-server ./tibi-server - - - name: Build Tibi Server Docker Image - run: | - docker build -t tibiserver-image -f ./tibi-server . - - - name: Start Tibi Server - run: | - docker run -d -p 8080:8080 \ - -e API_PORT=8080 \ - -e DB_DIAL=mongodb://mongo \ - -e MAIL_HOST=maildev:25 \ - tibiserver-image - name: modify config run: | sed -i 's#\(sentryEnvironment.*\)".*"#\1"${GITHUB_REF_NAME}"#g' frontend/src/config.ts