Compare commits

..

No commits in common. "8c56cfc8984c28214bee262c0632d05a06fff1ef" and "ca0c2799abd51b4514d195619f177e9d2c99505f" have entirely different histories.

4 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@ steps:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
repo: git.gnous.eu/${CI_REPO_OWNER}/plakken repo: git.gnous.eu/${CI_REPO_OWNER}/plakken
dockerfile: deployement/docker/Dockerfile dockerfile: docker/Dockerfile
platforms: linux/amd64,linux/arm64/v8,linux/arm platforms: linux/amd64,linux/arm64/v8,linux/arm
registry: https://git.gnous.eu registry: https://git.gnous.eu
tag: ${CI_COMMIT} tag: ${CI_COMMIT}
@ -18,7 +18,7 @@ steps:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
repo: git.gnous.eu/${CI_REPO_OWNER}/plakken repo: git.gnous.eu/${CI_REPO_OWNER}/plakken
dockerfile: deployement/docker/Dockerfile dockerfile: docker/Dockerfile
platforms: linux/amd64,linux/arm64/v8,linux/arm platforms: linux/amd64,linux/arm64/v8,linux/arm
registry: https://git.gnous.eu registry: https://git.gnous.eu
tags: tags:

View file

@ -1,18 +1,18 @@
# Build # Build
FROM golang:1.22 AS build FROM golang:1.22 AS build
LABEL authors="gnousEU"
WORKDIR /build WORKDIR /build
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY static/ ./static
COPY templates/ ./templates
COPY main.go ./ COPY main.go ./
COPY internal/ ./internal COPY internal/ ./internal
COPY static/ ./static
COPY templates/ ./templates
# Enable static binary, target Linux, remove debug information and strip binary RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" # Enable static binary, target Linux, remove debug information and strip binary
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s"
# Copy to our image # Copy to our image
FROM gcr.io/distroless/static-debian12:nonroot FROM gcr.io/distroless/static-debian12:nonroot
@ -25,4 +25,4 @@ ENV PLAKKEN_LISTEN ":3000"
EXPOSE 3000/tcp EXPOSE 3000/tcp
ENTRYPOINT ["/app/plakken"] ENTRYPOINT ["/app/plakken"]

View file

@ -28,4 +28,4 @@ services:
healthcheck: healthcheck:
test: [ "CMD", "redis-cli", "ping" ] test: [ "CMD", "redis-cli", "ping" ]
networks: networks:
- plakken - plakken

View file

@ -33,4 +33,4 @@ services:
networks: networks:
- plakken - plakken
volumes: volumes:
- redis:/data - redis:/data