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'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
runs-on: docker-host
|
runs-on: docker-host
|
||||||
steps:
|
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
|
- name: Sync deploy scripts on server
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory /opt/memento || true
|
git config --global --add safe.directory /opt/memento || true
|
||||||
@@ -105,6 +114,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: web-artifact
|
name: web-artifact
|
||||||
|
|
||||||
|
|
||||||
- name: Update .env.docker
|
- name: Update .env.docker
|
||||||
env:
|
env:
|
||||||
APP_URL: ${{ vars.APP_URL }}
|
APP_URL: ${{ vars.APP_URL }}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ services:
|
|||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
networks:
|
networks:
|
||||||
- memento-monitoring
|
- memento-monitoring
|
||||||
|
- memento-net
|
||||||
|
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user