Compare commits
17 Commits
b87c61ea99
...
v0.0.34
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a37b04506 | ||
|
|
a5a683d1de | ||
|
|
e0b8f8650b | ||
|
|
3a7b5a0f9a | ||
|
|
999a595b9c | ||
|
|
e6f705486d | ||
|
|
66734923cb | ||
|
|
48d2d7f83d | ||
|
|
444bda7263 | ||
|
|
99fc1a28ad | ||
|
|
2075cd2901 | ||
|
|
f4ec33fe53 | ||
|
|
3080cb1e87 | ||
|
|
89fb5bbf7d | ||
|
|
6c6bc0d57f | ||
|
|
3dbd60ac27 | ||
|
|
5664105111 |
@@ -3,6 +3,7 @@ name: Build and Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- main
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
@@ -12,129 +13,145 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
cd $GITHUB_WORKSPACE
|
||||||
|
git init
|
||||||
|
git remote add origin ${{ github.server_url }}/${{ github.repository }}.git
|
||||||
|
|
||||||
|
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||||
|
# For tags, fetch the specific tag and checkout the commit it points to
|
||||||
|
git fetch origin ${{ github.ref }}:refs/tags/${{ github.ref_name }}
|
||||||
|
git checkout refs/tags/${{ github.ref_name }}
|
||||||
|
else
|
||||||
|
# For branches, fetch and checkout with tracking
|
||||||
|
git fetch origin ${{ github.ref_name }}:refs/remotes/origin/${{ github.ref_name }}
|
||||||
|
git checkout -b ${{ github.ref_name }} origin/${{ github.ref_name }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
run: |
|
||||||
with:
|
wget https://go.dev/dl/go1.24.4.linux-amd64.tar.gz
|
||||||
go-version: '1.24.4'
|
tar -C /usr/local -xzf go1.24.4.linux-amd64.tar.gz
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
go version
|
||||||
|
|
||||||
- name: Generate version
|
- name: Generate version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||||
VERSION=${GITHUB_REF#refs/tags/}
|
VERSION=${{ github.ref_name }}
|
||||||
else
|
else
|
||||||
VERSION=dev-${{ github.sha }}
|
VERSION=dev-${{ github.sha }}
|
||||||
fi
|
fi
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build all binaries
|
- name: Build all binaries
|
||||||
run: |
|
run: |
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
|
|
||||||
# Generate templ first
|
# Generate templ first
|
||||||
go run github.com/a-h/templ/cmd/templ@latest generate
|
go run github.com/a-h/templ/cmd/templ@latest generate
|
||||||
|
|
||||||
# Linux AMD64
|
# Linux AMD64
|
||||||
|
echo "Building Linux AMD64..."
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-linux-amd64 ./cmd/server
|
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-linux-amd64 ./cmd/server
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-linux-amd64 ./cmd/agent
|
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-linux-amd64 ./cmd/agent
|
||||||
|
|
||||||
# Linux ARM64
|
# Linux ARM64
|
||||||
|
echo "Building Linux ARM64..."
|
||||||
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-linux-arm64 ./cmd/server
|
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-linux-arm64 ./cmd/server
|
||||||
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-linux-arm64 ./cmd/agent
|
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-linux-arm64 ./cmd/agent
|
||||||
|
|
||||||
# macOS AMD64
|
# macOS AMD64
|
||||||
|
echo "Building macOS AMD64..."
|
||||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-darwin-amd64 ./cmd/server
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-darwin-amd64 ./cmd/server
|
||||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-darwin-amd64 ./cmd/agent
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-darwin-amd64 ./cmd/agent
|
||||||
|
|
||||||
# macOS ARM64
|
# macOS ARM64
|
||||||
|
echo "Building macOS ARM64..."
|
||||||
GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-darwin-arm64 ./cmd/server
|
GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-darwin-arm64 ./cmd/server
|
||||||
GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-darwin-arm64 ./cmd/agent
|
GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-darwin-arm64 ./cmd/agent
|
||||||
|
|
||||||
# Windows AMD64
|
# Windows AMD64
|
||||||
|
echo "Building Windows AMD64..."
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-windows-amd64.exe ./cmd/server
|
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-server-windows-amd64.exe ./cmd/server
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-windows-amd64.exe ./cmd/agent
|
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o bin/nerd-monitor-agent-windows-amd64.exe ./cmd/agent
|
||||||
|
|
||||||
|
echo "Build complete! Files:"
|
||||||
|
ls -lh bin/
|
||||||
|
|
||||||
- name: Create checksums
|
- name: Create checksums
|
||||||
run: |
|
run: |
|
||||||
cd bin
|
cd bin
|
||||||
sha256sum * > SHA256SUMS
|
sha256sum * > SHA256SUMS
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "Checksums:"
|
||||||
|
cat bin/SHA256SUMS
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Create Release and Upload
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: binaries-${{ steps.version.outputs.version }}
|
|
||||||
path: bin/
|
|
||||||
retention-days: 30
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: Release ${{ github.ref }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload release assets
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
# This step uploads binaries to the release
|
export GITEA_TOKEN="${{ secrets.GITEA_TOKEN }}"
|
||||||
# Note: Gitea Actions may require additional configuration
|
export GITEA_URL="${{ github.server_url }}"
|
||||||
|
export REPO_OWNER="${{ github.repository_owner }}"
|
||||||
|
export REPO_NAME="${{ github.repository }}"
|
||||||
|
export REPO_NAME=${REPO_NAME#*/}
|
||||||
|
|
||||||
|
TAG=${{ github.ref_name }}
|
||||||
|
|
||||||
|
echo "Creating release for tag: $TAG"
|
||||||
|
echo "Repository: $REPO_OWNER/$REPO_NAME"
|
||||||
|
|
||||||
|
# Create release using Gitea API with wget
|
||||||
|
echo "Creating new release..."
|
||||||
|
|
||||||
|
# Create JSON payload in a temp file
|
||||||
|
cat > /tmp/release.json << 'PAYLOAD'
|
||||||
|
{"tag_name":"TAG_PLACEHOLDER","name":"Release TAG_PLACEHOLDER","draft":false,"prerelease":false}
|
||||||
|
PAYLOAD
|
||||||
|
sed -i "s/TAG_PLACEHOLDER/$TAG/g" /tmp/release.json
|
||||||
|
|
||||||
|
RESPONSE=$(wget --post-file=/tmp/release.json \
|
||||||
|
--header="Authorization: token $GITEA_TOKEN" \
|
||||||
|
--header="Content-Type: application/json" \
|
||||||
|
-O - -q \
|
||||||
|
"$GITEA_URL/api/v1/repos/$REPO_OWNER/$REPO_NAME/releases")
|
||||||
|
|
||||||
|
# Extract release ID using grep
|
||||||
|
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||||
|
|
||||||
|
if [ -z "$RELEASE_ID" ]; then
|
||||||
|
echo "Failed to create release. Response:"
|
||||||
|
echo "$RESPONSE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Created release ID: $RELEASE_ID"
|
||||||
|
|
||||||
|
# Upload all binaries
|
||||||
|
echo "Uploading release artifacts..."
|
||||||
for file in bin/*; do
|
for file in bin/*; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
echo "Uploading $file to release"
|
filename=$(basename "$file")
|
||||||
|
echo " Uploading: $filename"
|
||||||
|
|
||||||
|
# Upload binary file to Gitea API
|
||||||
|
UPLOAD_RESPONSE=$(wget --post-file="$file" \
|
||||||
|
--header="Authorization: token $GITEA_TOKEN" \
|
||||||
|
--header="Content-Type: application/octet-stream" \
|
||||||
|
-O - -q \
|
||||||
|
"$GITEA_URL/api/v1/repos/$REPO_OWNER/$REPO_NAME/releases/$RELEASE_ID/assets?name=$filename" 2>&1)
|
||||||
|
|
||||||
|
if echo "$UPLOAD_RESPONSE" | grep -q '"id"'; then
|
||||||
|
echo " ✓ $filename uploaded"
|
||||||
|
else
|
||||||
|
echo " ✗ Failed to upload $filename"
|
||||||
|
echo "Response: $UPLOAD_RESPONSE"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
docker-build:
|
echo ""
|
||||||
runs-on: ubuntu-latest
|
echo "Release completed!"
|
||||||
steps:
|
echo "View at: $GITEA_URL/$REPO_OWNER/$REPO_NAME/releases/tag/$TAG"
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Generate version
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
|
||||||
VERSION=${GITHUB_REF#refs/tags/}
|
|
||||||
else
|
|
||||||
VERSION=dev-${{ github.sha }}
|
|
||||||
fi
|
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push server image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.server
|
|
||||||
push: false
|
|
||||||
outputs: type=docker,dest=/tmp/nerd-monitor-server.tar
|
|
||||||
tags: |
|
|
||||||
nerd-monitor-server:latest
|
|
||||||
nerd-monitor-server:${{ steps.version.outputs.version }}
|
|
||||||
|
|
||||||
- name: Build and push agent image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.agent
|
|
||||||
push: false
|
|
||||||
outputs: type=docker,dest=/tmp/nerd-monitor-agent.tar
|
|
||||||
tags: |
|
|
||||||
nerd-monitor-agent:latest
|
|
||||||
nerd-monitor-agent:${{ steps.version.outputs.version }}
|
|
||||||
|
|
||||||
- name: Upload Docker images
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: docker-images-${{ steps.version.outputs.version }}
|
|
||||||
path: /tmp/nerd-monitor-*.tar
|
|
||||||
retention-days: 30
|
|
||||||
|
|||||||
@@ -25,21 +25,21 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY --from=builder /app/nerd-monitor-agent .
|
COPY --from=builder /app/nerd-monitor-agent .
|
||||||
|
|
||||||
# Create non-root user
|
# Create entrypoint script BEFORE switching users
|
||||||
RUN addgroup -D appgroup && adduser -D appuser -G appgroup
|
RUN echo '#!/bin/sh' > /app/entrypoint.sh && \
|
||||||
USER appuser
|
echo 'SERVER=${SERVER:-localhost:8080}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'INTERVAL=${INTERVAL:-15s}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'AGENT_ID=${AGENT_ID:-}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'if [ -z "$AGENT_ID" ]; then' >> /app/entrypoint.sh && \
|
||||||
|
echo ' exec ./nerd-monitor-agent --server "$SERVER" --interval "$INTERVAL"' >> /app/entrypoint.sh && \
|
||||||
|
echo 'else' >> /app/entrypoint.sh && \
|
||||||
|
echo ' exec ./nerd-monitor-agent --server "$SERVER" --interval "$INTERVAL" --id "$AGENT_ID"' >> /app/entrypoint.sh && \
|
||||||
|
echo 'fi' >> /app/entrypoint.sh && \
|
||||||
|
chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
# Create entrypoint script to handle environment variables
|
# Create non-root user
|
||||||
RUN echo '#!/bin/sh\n\
|
RUN addgroup -g 1000 appgroup && adduser -D -u 1000 -G appgroup appuser
|
||||||
SERVER=${SERVER:-localhost:8080}\n\
|
USER appuser
|
||||||
INTERVAL=${INTERVAL:-15s}\n\
|
|
||||||
AGENT_ID=${AGENT_ID:-}\n\
|
|
||||||
if [ -z "$AGENT_ID" ]; then\n\
|
|
||||||
exec ./nerd-monitor-agent --server "$SERVER" --interval "$INTERVAL"\n\
|
|
||||||
else\n\
|
|
||||||
exec ./nerd-monitor-agent --server "$SERVER" --interval "$INTERVAL" --id "$AGENT_ID"\n\
|
|
||||||
fi\n\
|
|
||||||
' > /app/entrypoint.sh && chmod +x /app/entrypoint.sh
|
|
||||||
|
|
||||||
# Run the agent
|
# Run the agent
|
||||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
|
|||||||
@@ -32,8 +32,17 @@ RUN apk add --no-cache ca-certificates
|
|||||||
# Copy binary from builder
|
# Copy binary from builder
|
||||||
COPY --from=builder /app/nerd-monitor-server .
|
COPY --from=builder /app/nerd-monitor-server .
|
||||||
|
|
||||||
|
# Create entrypoint script BEFORE switching users
|
||||||
|
RUN echo '#!/bin/sh' > /app/entrypoint.sh && \
|
||||||
|
echo 'ADDR=${ADDR:-0.0.0.0}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'PORT=${PORT:-8080}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'USERNAME=${USERNAME:-admin}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'PASSWORD=${PASSWORD:-admin}' >> /app/entrypoint.sh && \
|
||||||
|
echo 'exec ./nerd-monitor-server -addr "$ADDR" -port "$PORT" -username "$USERNAME" -password "$PASSWORD"' >> /app/entrypoint.sh && \
|
||||||
|
chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
# Create non-root user
|
# Create non-root user
|
||||||
RUN addgroup -D appgroup && adduser -D appuser -G appgroup
|
RUN addgroup -g 1000 appgroup && adduser -D -u 1000 -G appgroup appuser
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
@@ -43,14 +52,5 @@ EXPOSE 8080
|
|||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD wget --quiet --tries=1 --spider http://localhost:8080/login || exit 1
|
CMD wget --quiet --tries=1 --spider http://localhost:8080/login || exit 1
|
||||||
|
|
||||||
# Create entrypoint script to handle environment variables
|
|
||||||
RUN echo '#!/bin/sh\n\
|
|
||||||
ADDR=${ADDR:-0.0.0.0}\n\
|
|
||||||
PORT=${PORT:-8080}\n\
|
|
||||||
USERNAME=${USERNAME:-admin}\n\
|
|
||||||
PASSWORD=${PASSWORD:-admin}\n\
|
|
||||||
exec ./nerd-monitor-server -addr "$ADDR" -port "$PORT" -username "$USERNAME" -password "$PASSWORD"\n\
|
|
||||||
' > /app/entrypoint.sh && chmod +x /app/entrypoint.sh
|
|
||||||
|
|
||||||
# Run the server
|
# Run the server
|
||||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
|
|||||||
164
GITEA_SETUP.md
Normal file
164
GITEA_SETUP.md
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
# Gitea Actions Setup - Server Configuration Checklist
|
||||||
|
|
||||||
|
This document outlines the changes needed on your Gitea server to make the CI/CD pipeline work.
|
||||||
|
|
||||||
|
## What You Need to Do
|
||||||
|
|
||||||
|
### 1. Add GITEA_TOKEN Secret to Repository
|
||||||
|
|
||||||
|
1. **Log into Gitea** with your user account
|
||||||
|
2. **Navigate to** your nerd-monitor repository
|
||||||
|
3. **Go to Settings → Secrets**
|
||||||
|
4. **Create a new secret**:
|
||||||
|
- Name: `GITEA_TOKEN`
|
||||||
|
- Value: [Your Gitea API token - see below for how to create]
|
||||||
|
5. **Save the secret**
|
||||||
|
|
||||||
|
### 2. Create an API Token (if you haven't already)
|
||||||
|
|
||||||
|
1. **Log into Gitea** with your user account
|
||||||
|
2. **Go to Settings → Applications**
|
||||||
|
3. **Click "Generate New Token"**
|
||||||
|
4. **Fill in the form**:
|
||||||
|
- Token Name: `release-automation`
|
||||||
|
- Scopes: Select at least `repo` (full repository access)
|
||||||
|
5. **Click "Generate"**
|
||||||
|
6. **Copy the token immediately** (you won't see it again)
|
||||||
|
7. **Use this token** for the secret in step 1
|
||||||
|
|
||||||
|
### 3. Verify Gitea Actions is Enabled (Server Admin)
|
||||||
|
|
||||||
|
These steps require SSH access to your Gitea server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# SSH into your Gitea server
|
||||||
|
ssh user@your-gitea-server
|
||||||
|
|
||||||
|
# Edit the Gitea configuration
|
||||||
|
sudo vi /etc/gitea/app.ini
|
||||||
|
|
||||||
|
# Verify or add this section:
|
||||||
|
[actions]
|
||||||
|
ENABLED = true
|
||||||
|
|
||||||
|
# Save and exit (Esc, :wq, Enter)
|
||||||
|
|
||||||
|
# Restart Gitea for changes to take effect
|
||||||
|
sudo systemctl restart gitea
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Verify Your Runner is Online (Server Admin)
|
||||||
|
|
||||||
|
1. **Log into Gitea** as admin
|
||||||
|
2. **Go to Administration → Actions → Runners**
|
||||||
|
3. **Verify** at least one runner is listed and shows as "Online" or "Idle"
|
||||||
|
4. If no runners:
|
||||||
|
- You need to set up a Gitea Actions runner on a machine with Docker and Go
|
||||||
|
- See "Setting Up a Runner" below
|
||||||
|
|
||||||
|
## Setting Up a Runner (if needed)
|
||||||
|
|
||||||
|
If you don't have any runners yet, you need to set one up. This can be on the Gitea server itself or any machine with Docker and Go.
|
||||||
|
|
||||||
|
### Quick Runner Setup
|
||||||
|
|
||||||
|
1. **On your Gitea server or runner machine**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Download the Gitea Actions runner
|
||||||
|
wget https://github.com/gitea/act_runner/releases/download/v0.6.10/act_runner-0.6.10-linux-amd64
|
||||||
|
chmod +x act_runner-0.6.10-linux-amd64
|
||||||
|
|
||||||
|
# Register the runner with your Gitea instance
|
||||||
|
./act_runner-0.6.10-linux-amd64 register \
|
||||||
|
--instance https://git.nerdnest.dev \
|
||||||
|
--token <your-runner-token>
|
||||||
|
|
||||||
|
# Run the runner in the background
|
||||||
|
./act_runner-0.6.10-linux-amd64 daemon &
|
||||||
|
```
|
||||||
|
|
||||||
|
To get a runner token:
|
||||||
|
1. Log into Gitea as **admin**
|
||||||
|
2. Go to **Administration → Actions → Runners**
|
||||||
|
3. Click **Create new runner**
|
||||||
|
4. Follow the registration steps
|
||||||
|
|
||||||
|
### Installing Docker on the Runner (Optional)
|
||||||
|
|
||||||
|
Docker is **not required** for the CI/CD pipeline. Binary builds work without Docker.
|
||||||
|
|
||||||
|
If you want to manually build Docker images:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build server image
|
||||||
|
docker build -t nerd-monitor-server -f Dockerfile.server .
|
||||||
|
|
||||||
|
# Build agent image
|
||||||
|
docker build -t nerd-monitor-agent -f Dockerfile.agent .
|
||||||
|
|
||||||
|
# Or use docker-compose for both
|
||||||
|
docker-compose build
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
## What Happens Next
|
||||||
|
|
||||||
|
Once you've set everything up:
|
||||||
|
|
||||||
|
1. **Every push to main/master** triggers the build job:
|
||||||
|
- Compiles all platform binaries (Linux, macOS, Windows)
|
||||||
|
- Creates SHA256 checksums
|
||||||
|
- Artifacts available for 30 days
|
||||||
|
|
||||||
|
2. **Every git tag push** (e.g., `v1.0.0`) triggers the full release:
|
||||||
|
- Does all of the above
|
||||||
|
- Creates a Gitea Release
|
||||||
|
- Uploads all binaries and checksums to the release (permanent storage)
|
||||||
|
|
||||||
|
3. **Releases are available in**:
|
||||||
|
- Repository Releases tab in Gitea
|
||||||
|
- All binaries ready for download
|
||||||
|
- SHA256SUMS file for verification
|
||||||
|
|
||||||
|
Note: Docker images are not built automatically. To build Docker images manually, use:
|
||||||
|
```bash
|
||||||
|
docker build -t nerd-monitor-server -f Dockerfile.server .
|
||||||
|
docker build -t nerd-monitor-agent -f Dockerfile.agent .
|
||||||
|
# Or use docker-compose: docker-compose build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### "docker: command not found" in workflow
|
||||||
|
- Docker support is not required - the workflow builds binaries without it
|
||||||
|
- Binary builds will always succeed
|
||||||
|
- Docker images must be built manually using: `docker build -f Dockerfile.server .`
|
||||||
|
- See QUICKSTART.md or DOCKER_COMPOSE.md for manual Docker build instructions
|
||||||
|
|
||||||
|
### "Action not found" error
|
||||||
|
- Make sure Gitea Actions is enabled
|
||||||
|
- Restart Gitea if you just enabled it: `sudo systemctl restart gitea`
|
||||||
|
|
||||||
|
### No runners available
|
||||||
|
- Runner must be registered: Administration → Actions → Runners
|
||||||
|
- Runner machine must have Go installed (1.24.4 or later)
|
||||||
|
- Docker is optional (for building Docker images)
|
||||||
|
- Check if runner is online in the UI
|
||||||
|
|
||||||
|
### "GITEA_TOKEN" not found
|
||||||
|
- Make sure the secret is named exactly `GITEA_TOKEN` (case-sensitive)
|
||||||
|
- Go to Settings → Secrets and verify it's there
|
||||||
|
- If it's there, try re-running the workflow
|
||||||
|
|
||||||
|
### Build fails with permission denied (Docker)
|
||||||
|
- Make sure the runner user has permission to run Docker commands
|
||||||
|
- On the runner machine: `sudo usermod -aG docker $USER`
|
||||||
|
- Logout and log back in for the group change to take effect
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
- Gitea Actions Docs: https://docs.gitea.io/en-us/actions/
|
||||||
|
- Act Runner Docs: https://gitea.com/gitea/act_runner
|
||||||
|
- Docker Installation: https://docs.docker.com/install/
|
||||||
|
- For issues with the workflow itself, check the Actions tab logs
|
||||||
282
RELEASE.md
282
RELEASE.md
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This project uses **Gitea Actions** to automatically build and release binaries and Docker images when you push to the `master` branch or create a new tag.
|
This project uses **Gitea Actions** to automatically build and release cross-platform binaries when you push to the `master` branch or create a new tag.
|
||||||
|
|
||||||
## Automatic Release Pipeline
|
## Automatic Release Pipeline
|
||||||
|
|
||||||
@@ -11,13 +11,12 @@ This project uses **Gitea Actions** to automatically build and release binaries
|
|||||||
1. **Master Branch Push**: When you push to `master`, the workflow:
|
1. **Master Branch Push**: When you push to `master`, the workflow:
|
||||||
- Builds all platform binaries (Linux/macOS/Windows, amd64/arm64)
|
- Builds all platform binaries (Linux/macOS/Windows, amd64/arm64)
|
||||||
- Generates checksums (SHA256)
|
- Generates checksums (SHA256)
|
||||||
- Uploads artifacts for 30 days
|
- Binaries are available as build artifacts for 30 days
|
||||||
- Builds Docker images (server & agent)
|
|
||||||
|
|
||||||
2. **Tag Creation**: When you create a tag (e.g., `v1.0.0`), the workflow:
|
2. **Tag Creation**: When you create a tag (e.g., `v1.0.0`), the workflow:
|
||||||
- Does all of the above
|
- Does all of the above
|
||||||
- Creates a GitHub Release
|
- Creates a Gitea Release
|
||||||
- Uploads all binaries and Docker images to the release
|
- Uploads all binaries and checksums to the release (permanent storage)
|
||||||
|
|
||||||
### Supported Platforms
|
### Supported Platforms
|
||||||
|
|
||||||
@@ -26,56 +25,81 @@ Binaries are built for:
|
|||||||
- **macOS**: amd64 (Intel), arm64 (Apple Silicon)
|
- **macOS**: amd64 (Intel), arm64 (Apple Silicon)
|
||||||
- **Windows**: amd64
|
- **Windows**: amd64
|
||||||
|
|
||||||
Docker images are built for Linux containers.
|
### What Gets Built and Released
|
||||||
|
|
||||||
|
When you push a tag, the workflow automatically creates:
|
||||||
|
|
||||||
|
**Binaries** (10 files total):
|
||||||
|
- `nerd-monitor-server-linux-amd64` - Server for Linux x86_64
|
||||||
|
- `nerd-monitor-server-linux-arm64` - Server for Linux ARM64 (Raspberry Pi, etc.)
|
||||||
|
- `nerd-monitor-server-darwin-amd64` - Server for macOS Intel
|
||||||
|
- `nerd-monitor-server-darwin-arm64` - Server for macOS Apple Silicon
|
||||||
|
- `nerd-monitor-server-windows-amd64.exe` - Server for Windows
|
||||||
|
- `nerd-monitor-agent-linux-amd64` - Agent for Linux x86_64
|
||||||
|
- `nerd-monitor-agent-linux-arm64` - Agent for Linux ARM64
|
||||||
|
- `nerd-monitor-agent-darwin-amd64` - Agent for macOS Intel
|
||||||
|
- `nerd-monitor-agent-darwin-arm64` - Agent for macOS Apple Silicon
|
||||||
|
- `nerd-monitor-agent-windows-amd64.exe` - Agent for Windows
|
||||||
|
|
||||||
|
**Checksums**:
|
||||||
|
- `SHA256SUMS` - SHA256 checksums for all binaries (for verification)
|
||||||
|
|
||||||
## Workflow Configuration
|
## Workflow Configuration
|
||||||
|
|
||||||
The Gitea Actions workflow is defined in `.gitea/workflows/release.yml`
|
The Gitea Actions workflow is defined in `.gitea/workflows/release.yml`
|
||||||
|
|
||||||
### Trigger Events
|
### Trigger Events
|
||||||
- Push to `master` branch
|
- Push to `master` or `main` branch (builds only, no release)
|
||||||
- Push of git tags (e.g., `v1.0.0`)
|
- Push of git tags (e.g., `v1.0.0`) - triggers full release with uploads
|
||||||
|
|
||||||
### Jobs
|
### Creating a Release
|
||||||
- `build`: Compiles all platform binaries and generates checksums
|
|
||||||
- `docker-build`: Builds Docker images for server and agent
|
|
||||||
|
|
||||||
## Creating a Release
|
#### Step 1: Create and Push a Tag
|
||||||
|
|
||||||
### Option 1: Automatic Release (Recommended)
|
|
||||||
|
|
||||||
1. Create a new tag:
|
|
||||||
```bash
|
```bash
|
||||||
|
# Create an annotated tag
|
||||||
git tag -a v1.0.0 -m "Release version 1.0.0"
|
git tag -a v1.0.0 -m "Release version 1.0.0"
|
||||||
|
|
||||||
|
# Push the tag to Gitea
|
||||||
git push origin v1.0.0
|
git push origin v1.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Gitea Actions will automatically:
|
#### Step 2: Monitor the Workflow
|
||||||
- Build all binaries
|
|
||||||
- Create a release in Gitea
|
|
||||||
- Upload all artifacts
|
|
||||||
|
|
||||||
3. View the release in Gitea: `Releases` tab on your repository
|
1. Go to your repository on Gitea
|
||||||
|
2. Click the **Actions** tab
|
||||||
|
3. You'll see the workflow running:
|
||||||
|
- `build` job: Compiles all binaries (5-10 minutes)
|
||||||
|
- `docker-build` job: Builds Docker images (5-10 minutes)
|
||||||
|
|
||||||
### Option 2: Manual Release Upload
|
#### Step 3: Verify the Release
|
||||||
|
|
||||||
If you need to manually upload binaries to Gitea:
|
Once the workflow completes:
|
||||||
|
|
||||||
```bash
|
1. Go to the **Releases** tab
|
||||||
# Set your Gitea token (create one in Gitea Settings → Applications → Generate Token)
|
2. You'll see a new release with:
|
||||||
export GITEA_TOKEN=your_token_here
|
- All platform binaries (Linux, macOS, Windows)
|
||||||
|
- SHA256SUMS file with checksums
|
||||||
|
- Docker image files (.tar)
|
||||||
|
|
||||||
# Build all binaries
|
### What Gets Built and Released
|
||||||
make build-all
|
|
||||||
|
|
||||||
# Upload to release
|
When you push a tag, the workflow automatically:
|
||||||
./scripts/upload-release.sh v1.0.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Environment variables (optional):
|
**Binaries** (10 files total):
|
||||||
- `GITEA_URL`: Gitea server URL (default: `https://git.nerdnest.dev`)
|
- `nerd-monitor-server-linux-amd64` - Server for Linux x86_64
|
||||||
- `REPO_OWNER`: Repository owner (default: `ducky`)
|
- `nerd-monitor-server-linux-arm64` - Server for Linux ARM64 (Raspberry Pi, etc.)
|
||||||
- `REPO_NAME`: Repository name (default: `nerd-monitor`)
|
- `nerd-monitor-server-darwin-amd64` - Server for macOS Intel
|
||||||
|
- `nerd-monitor-server-darwin-arm64` - Server for macOS Apple Silicon
|
||||||
|
- `nerd-monitor-server-windows-amd64.exe` - Server for Windows
|
||||||
|
- `nerd-monitor-agent-linux-amd64` - Agent for Linux x86_64
|
||||||
|
- `nerd-monitor-agent-linux-arm64` - Agent for Linux ARM64
|
||||||
|
- `nerd-monitor-agent-darwin-amd64` - Agent for macOS Intel
|
||||||
|
- `nerd-monitor-agent-darwin-arm64` - Agent for macOS Apple Silicon
|
||||||
|
- `nerd-monitor-agent-windows-amd64.exe` - Agent for Windows
|
||||||
|
|
||||||
|
**Checksums**:
|
||||||
|
- `SHA256SUMS` - SHA256 checksums for all binaries (for verification)
|
||||||
|
|
||||||
## Local Building
|
## Local Building
|
||||||
|
|
||||||
@@ -94,51 +118,86 @@ make clean
|
|||||||
|
|
||||||
Binaries are created in the `bin/` directory.
|
Binaries are created in the `bin/` directory.
|
||||||
|
|
||||||
## Docker Images
|
## Docker Images (Manual Build)
|
||||||
|
|
||||||
Two Docker images are built:
|
Docker images are available but not built automatically by CI/CD. To build them manually:
|
||||||
|
|
||||||
### Server Image
|
|
||||||
```bash
|
```bash
|
||||||
docker pull nerd-monitor-server:latest
|
# Build server image
|
||||||
docker run -p 8080:8080 nerd-monitor-server
|
docker build -t nerd-monitor-server:latest -f Dockerfile.server .
|
||||||
|
|
||||||
|
# Build agent image
|
||||||
|
docker build -t nerd-monitor-agent:latest -f Dockerfile.agent .
|
||||||
|
|
||||||
|
# Or use Docker Compose
|
||||||
|
docker-compose build
|
||||||
|
|
||||||
|
# Or use Docker Compose to run both
|
||||||
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
### Agent Image
|
See `DOCKER_COMPOSE.md` and `QUICKSTART.md` for detailed instructions.
|
||||||
```bash
|
|
||||||
docker pull nerd-monitor-agent:latest
|
|
||||||
docker run nerd-monitor-agent --server your-server:8080
|
|
||||||
```
|
|
||||||
|
|
||||||
## Gitea Configuration
|
## Gitea Configuration
|
||||||
|
|
||||||
### Enable Gitea Actions
|
### Prerequisites
|
||||||
|
|
||||||
1. SSH into your Gitea server
|
Before the CI/CD pipeline can create releases automatically, you need to:
|
||||||
2. Edit `app.ini`:
|
|
||||||
```ini
|
1. **Ensure Gitea Actions is enabled** on your Gitea server
|
||||||
|
2. **Create a Gitea API Token** with release permissions
|
||||||
|
3. **Add the token as an Actions secret** in your repository
|
||||||
|
|
||||||
|
### Setup Instructions
|
||||||
|
|
||||||
|
#### 1. Enable Gitea Actions (Server Admin)
|
||||||
|
|
||||||
|
SSH into your Gitea server and verify Actions is enabled:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Edit the Gitea configuration
|
||||||
|
sudo vi /etc/gitea/app.ini
|
||||||
|
|
||||||
|
# Add or verify:
|
||||||
[actions]
|
[actions]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
```
|
```
|
||||||
3. Restart Gitea:
|
|
||||||
|
Then restart Gitea:
|
||||||
```bash
|
```bash
|
||||||
systemctl restart gitea
|
sudo systemctl restart gitea
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create an API Token (for manual uploads)
|
#### 2. Create an API Token
|
||||||
|
|
||||||
1. Go to Settings → Applications
|
1. Log in to Gitea with your user account
|
||||||
2. Click "Generate New Token"
|
2. Go to **Settings** → **Applications**
|
||||||
3. Name it (e.g., "Release Upload")
|
3. Click **Generate New Token**
|
||||||
4. Give it `repo` permissions
|
4. Fill in:
|
||||||
5. Copy the token
|
- **Token Name**: `release-automation` (or any descriptive name)
|
||||||
|
- **Scopes**: Select `repo` (full repository access)
|
||||||
|
5. Click **Generate Token**
|
||||||
|
6. **Copy the token** (you won't be able to see it again)
|
||||||
|
|
||||||
Use it with the upload script:
|
#### 3. Add Token as Repository Secret
|
||||||
```bash
|
|
||||||
./scripts/upload-release.sh v1.0.0 <your_token>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Release Files
|
1. Go to your repository on Gitea
|
||||||
|
2. Navigate to **Settings** → **Secrets**
|
||||||
|
3. Click **Add Secret**
|
||||||
|
4. Fill in:
|
||||||
|
- **Secret Name**: `GITEA_TOKEN`
|
||||||
|
- **Secret Value**: Paste the token you copied
|
||||||
|
5. Click **Save**
|
||||||
|
|
||||||
|
Now the workflow will be able to create releases automatically!
|
||||||
|
|
||||||
|
### Workflow Configuration
|
||||||
|
|
||||||
|
The Gitea Actions workflow is defined in `.gitea/workflows/release.yml`
|
||||||
|
|
||||||
|
### Trigger Events
|
||||||
|
- Push to `master` or `main` branch (builds only, no release)
|
||||||
|
- Push of git tags (e.g., `v1.0.0`) - triggers full release with uploads
|
||||||
|
|
||||||
Each release includes:
|
Each release includes:
|
||||||
|
|
||||||
@@ -158,35 +217,93 @@ nerd-monitor-agent-windows-amd64.exe
|
|||||||
SHA256SUMS (checksums for all binaries)
|
SHA256SUMS (checksums for all binaries)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Coolify Integration
|
## Deployment Options
|
||||||
|
|
||||||
If you want to use Coolify for deployment:
|
### Option 1: Use Pre-Built Binaries (Recommended)
|
||||||
|
Download the native binaries from the Releases tab and run directly:
|
||||||
|
- Smallest footprint
|
||||||
|
- No Docker required
|
||||||
|
- Easiest to deploy to existing machines
|
||||||
|
|
||||||
1. **For Server Deployment**:
|
### Option 2: Use Docker (Manual Build)
|
||||||
- Use `Dockerfile.server` as the build context
|
Build Docker images manually and deploy:
|
||||||
- Coolify will auto-build on `master` branch pushes
|
```bash
|
||||||
- Deploy the server container to Coolify
|
docker build -t nerd-monitor-server:latest -f Dockerfile.server .
|
||||||
|
docker run -p 8080:8080 nerd-monitor-server:latest
|
||||||
|
```
|
||||||
|
|
||||||
2. **For Agent Deployment**:
|
See `docker-compose.yml` for running both server and agent together.
|
||||||
- Use `Dockerfile.agent` as the build context
|
|
||||||
- Deploy the agent container to machines that need monitoring
|
### Option 3: Use Docker Compose
|
||||||
|
For quick development/testing with both server and agent:
|
||||||
|
```bash
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
See `DOCKER_COMPOSE.md` and `QUICKSTART.md` for details.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Actions not running
|
### Workflow Not Triggering
|
||||||
- Ensure Gitea Actions is enabled on your server
|
|
||||||
- Check that your runner is available (`Settings → Actions`)
|
|
||||||
- Review action logs in the `Actions` tab
|
|
||||||
|
|
||||||
### Release not created
|
**Problem**: I pushed a tag but the workflow didn't start
|
||||||
- Ensure the tag format matches semantic versioning (v1.0.0)
|
|
||||||
- Check workflow logs for build errors
|
|
||||||
- Verify Go 1.24.4 is available in the runner environment
|
|
||||||
|
|
||||||
### Docker images not building
|
**Solutions**:
|
||||||
- Ensure Docker/Buildx is available in the runner
|
1. Check that the tag is pushed: `git push origin v1.0.0`
|
||||||
- Check the Dockerfile syntax
|
2. Verify Gitea Actions is enabled: Settings → Actions → Status should show "Enabled"
|
||||||
- Review build logs in the Actions tab
|
3. Check Actions tab for any error messages
|
||||||
|
4. Ensure your runner is online: Settings → Runners
|
||||||
|
|
||||||
|
### Token Authentication Failed
|
||||||
|
|
||||||
|
**Problem**: `"message":"Unauthorized"` or token-related errors in the logs
|
||||||
|
|
||||||
|
**Solutions**:
|
||||||
|
1. Verify the `GITEA_TOKEN` secret is set correctly: Repository → Settings → Secrets
|
||||||
|
2. Ensure the token has `repo` scope permissions
|
||||||
|
3. Token should not be expired - regenerate if needed
|
||||||
|
4. Double-check there are no extra spaces in the token
|
||||||
|
|
||||||
|
### Build Fails with "Go not found"
|
||||||
|
|
||||||
|
**Problem**: Workflow fails when trying to build, says Go is not available
|
||||||
|
|
||||||
|
**Solutions**:
|
||||||
|
1. This is usually a temporary issue - runner environment might not have been fully initialized
|
||||||
|
2. Retry the workflow: Go to Actions tab → Click the failed workflow → Click "Re-run jobs"
|
||||||
|
3. Check if the runner has enough disk space: `df -h` on the runner machine
|
||||||
|
|
||||||
|
### Binaries Not Uploaded to Release
|
||||||
|
|
||||||
|
**Problem**: Workflow completes but binaries don't appear in the release
|
||||||
|
|
||||||
|
**Solutions**:
|
||||||
|
1. Check the workflow logs: Actions tab → Click the workflow → View logs
|
||||||
|
2. Look for "Uploading" messages and any error messages
|
||||||
|
3. Verify the release was created: Go to Releases tab
|
||||||
|
4. Check that `GITEA_TOKEN` secret is still valid (tokens can expire)
|
||||||
|
|
||||||
|
### How to Check Workflow Logs
|
||||||
|
|
||||||
|
1. Go to your Gitea repository
|
||||||
|
2. Click the **Actions** tab
|
||||||
|
3. Click on the workflow run (should show the tag name)
|
||||||
|
4. Click on the `build` job
|
||||||
|
5. Scroll through the log to find error messages
|
||||||
|
6. Look for red `❌` marks indicating failures
|
||||||
|
|
||||||
|
### Manual Trigger for Testing
|
||||||
|
|
||||||
|
If you want to test the workflow without creating a full release:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Push to main/master branch (triggers build only, no release)
|
||||||
|
git push origin main
|
||||||
|
|
||||||
|
# Then push a tag when you're ready (triggers full release)
|
||||||
|
git tag -a v1.0.0 -m "Release"
|
||||||
|
git push origin v1.0.0
|
||||||
|
```
|
||||||
|
|
||||||
## Additional Resources
|
## Additional Resources
|
||||||
|
|
||||||
@@ -194,3 +311,4 @@ If you want to use Coolify for deployment:
|
|||||||
- [Project README](./README.md)
|
- [Project README](./README.md)
|
||||||
- [Quick Start Guide](./QUICKSTART.md)
|
- [Quick Start Guide](./QUICKSTART.md)
|
||||||
- [Agent Guidelines](./AGENTS.md)
|
- [Agent Guidelines](./AGENTS.md)
|
||||||
|
- [Docker Compose Guide](./DOCKER_COMPOSE.md)
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
# Nerd Monitor Docker Compose Configuration
|
# Nerd Monitor Docker Compose Configuration
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
@@ -40,7 +38,6 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.server
|
dockerfile: Dockerfile.server
|
||||||
container_name: nerd-monitor-server
|
container_name: nerd-monitor-server
|
||||||
image: nerd-monitor-server:latest
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
environment:
|
environment:
|
||||||
@@ -82,7 +79,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.agent
|
dockerfile: Dockerfile.agent
|
||||||
image: nerd-monitor-agent:latest
|
|
||||||
environment:
|
environment:
|
||||||
# Agent configuration
|
# Agent configuration
|
||||||
SERVER: "server:8080" # Connect to the server service
|
SERVER: "server:8080" # Connect to the server service
|
||||||
|
|||||||
Reference in New Issue
Block a user