fix(ci): install node in runner for download-artifact and connect prometheus to memento-net
This commit is contained in:
@@ -92,6 +92,15 @@ jobs:
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
runs-on: docker-host
|
||||
steps:
|
||||
- name: Install Node.js for Gitea Actions
|
||||
run: |
|
||||
if command -v apk >/dev/null 2>&1; then
|
||||
apk add --no-cache nodejs || true
|
||||
elif command -v apt-get >/dev/null 2>&1; then
|
||||
if command -v sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi
|
||||
$SUDO apt-get update -qq && $SUDO apt-get install -y -qq nodejs || true
|
||||
fi
|
||||
|
||||
- name: Sync deploy scripts on server
|
||||
run: |
|
||||
git config --global --add safe.directory /opt/memento || true
|
||||
@@ -105,6 +114,7 @@ jobs:
|
||||
with:
|
||||
name: web-artifact
|
||||
|
||||
|
||||
- name: Update .env.docker
|
||||
env:
|
||||
APP_URL: ${{ vars.APP_URL }}
|
||||
|
||||
@@ -11,6 +11,8 @@ services:
|
||||
- "9090:9090"
|
||||
networks:
|
||||
- memento-monitoring
|
||||
- memento-net
|
||||
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
|
||||
Reference in New Issue
Block a user