Skip to content

Commit

Permalink
save new build settings
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan <29968201+Nathan13888@users.noreply.github.com>
  • Loading branch information
Nathan13888 committed Jul 29, 2024
1 parent fd46bc6 commit cefa7de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM golang:1.18-alpine as builder
WORKDIR /build
COPY . .
RUN apk add make

ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN make build

# IMAGE: CONTAINER
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ docker-build:
# TODO: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#labelling-container-images

docker tag vbr:latest ghcr.io/nathan13888/vbr:latest
docker push ghcr.io/nathan13888/vbr:latest

docker-run:
docker run -it --rm -p 80:8080 -p 443:8081 -p 9090:9090 vbr
Expand All @@ -29,9 +28,10 @@ publish:
make publish-ghcr

publish-ghcr:
docker tag ghcr.io/nathan13888/vbr:latest ghcr.io/nathan13888/vbr:1.1
docker push ghcr.io/nathan13888/vbr:latest
docker tag ghcr.io/nathan13888/vbr:latest ghcr.io/nathan13888/vbr:1.2
# TODO: use latest git tag as tag ^^
docker push ghcr.io/nathan13888/vbr:1.1
docker push ghcr.io/nathan13888/vbr:1.2


clean:
Expand Down
5 changes: 5 additions & 0 deletions build.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

var (
BuildTime string
)
15 changes: 0 additions & 15 deletions deployments/README.md

This file was deleted.

1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
Uptime: int64(time.Since(startTime).Seconds()),
CodeRepository: "https://github.com/Nathan13888/VisitorBadgeReloaded",
RedisStatus: "TBI",
Version: BuildVersion,
// TODO: more redis fields
}

Expand Down

0 comments on commit cefa7de

Please sign in to comment.