Skip to content

Commit 96779c4

Browse files
Merge pull request #2 from appwrite/chore-fix-ci
fix: incorrect env variable in ci
2 parents 6820a29 + edc5a69 commit 96779c4

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

.env renamed to .env.example

File renamed without changes.

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
with:
2424
context: .
2525
push: true
26-
tags: ghcr.io/appwrite/monitoring:${{ env.TAG }}
26+
tags: ghcr.io/appwrite/monitoring:${{ github.event.release.tag_name }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

Dockerfile

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,20 @@ FROM golang:1.21-alpine AS builder
22

33
WORKDIR /app
44

5-
# Install build dependencies
65
RUN apk add --no-cache gcc musl-dev
76

8-
# Copy go mod files
9-
COPY go.mod go.sum ./
10-
11-
# Download dependencies
12-
RUN go mod download
13-
14-
# Copy source code
157
COPY . .
168

17-
# Build the application
18-
RUN CGO_ENABLED=1 GOOS=linux go build -a -o monitoring .
9+
RUN go mod download
1910

20-
# Copy the monitoring binary to /usr/local/bin to make it available in PATH
21-
COPY monitoring /usr/local/bin/monitoring
22-
RUN chmod +x /usr/local/bin/monitoring
11+
RUN go build -o monitoring .
2312

24-
# Final stage
25-
FROM alpine:3.19
13+
FROM alpine:3.19 AS final
2614

2715
WORKDIR /app
2816

29-
# Install runtime dependencies
3017
RUN apk add --no-cache ca-certificates
3118

32-
# Copy binary from builder
33-
COPY --from=builder /app/monitoring .
19+
COPY --from=builder /app/monitoring /usr/local/bin/monitoring
20+
21+
RUN chmod +x /usr/local/bin/monitoring

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# System Monitoring
22

3-
A lightweight system monitoring tool that tracks CPU, memory, and disk usage across your infrastructure. When resource usage exceeds defined thresholds, it creates incidents in BetterStack (formerly BetterUptime).
3+
A lightweight system monitoring tool that tracks CPU, memory, and disk usage across your infrastructure. When resource usage exceeds defined thresholds, it creates incidents in BetterStack.
44

55
## Features
66

0 commit comments

Comments
 (0)