Compare commits
1
Commits
main
...
83b8214433
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83b8214433 |
No files matched your search
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# Targets of the database checks; SQL Server is left to local runs,
|
# Targets of the database checks; SQL Server is left to local runs,
|
||||||
# its image is too large for ephemeral runners.
|
# its image is too large for ephemeral runners.
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11
|
image: mariadb:11@sha256:e1d5495f445654134f226f55a41ce0da227116f6f27f283101f405c794d841fc
|
||||||
env:
|
env:
|
||||||
MARIADB_ROOT_PASSWORD: checkpw
|
MARIADB_ROOT_PASSWORD: checkpw
|
||||||
MARIADB_DATABASE: shop
|
MARIADB_DATABASE: shop
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
RABBITMQ_DEFAULT_USER: check
|
RABBITMQ_DEFAULT_USER: check
|
||||||
RABBITMQ_DEFAULT_PASS: checkpw
|
RABBITMQ_DEFAULT_PASS: checkpw
|
||||||
kafka:
|
kafka:
|
||||||
image: apache/kafka-native:4.1.1
|
image: apache/kafka-native:4.1.1@sha256:b8faca36f5385f90e46861ea0b2f532ebed86e9b2868b717c75a67f6fda0c7ce
|
||||||
env:
|
env:
|
||||||
KAFKA_NODE_ID: 1
|
KAFKA_NODE_ID: 1
|
||||||
KAFKA_PROCESS_ROLES: broker,controller
|
KAFKA_PROCESS_ROLES: broker,controller
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
# once the PACKAGE_TOKEN secret (write:package) exists.
|
# once the PACKAGE_TOKEN secret (write:package) exists.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: docker:cli
|
image: docker:cli@sha256:34507eb5069d8be82c95dd3b6987d4250fd5fee49b82e2509b7d7a7030740d6d
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1@sha256:572cebbc2b15e6f84c077742952674889cb63cd5e9b80abdffcbe587b6f19183
|
||||||
FROM node:24-alpine AS web
|
FROM node:24-alpine AS web
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
@@ -18,7 +18,7 @@ RUN CGO_ENABLED=0 go build -trimpath \
|
|||||||
-ldflags "-s -w -X git.zb-server.de/ZB-Server/uptimesebi/internal/buildinfo.Version=${VERSION} -X git.zb-server.de/ZB-Server/uptimesebi/internal/buildinfo.Commit=${COMMIT}" \
|
-ldflags "-s -w -X git.zb-server.de/ZB-Server/uptimesebi/internal/buildinfo.Version=${VERSION} -X git.zb-server.de/ZB-Server/uptimesebi/internal/buildinfo.Commit=${COMMIT}" \
|
||||||
-o /out/ ./cmd/...
|
-o /out/ ./cmd/...
|
||||||
|
|
||||||
FROM gcr.io/distroless/static-debian12:nonroot
|
FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab
|
||||||
COPY --from=build /out/ /usr/local/bin/
|
COPY --from=build /out/ /usr/local/bin/
|
||||||
USER nonroot
|
USER nonroot
|
||||||
ENTRYPOINT ["/usr/local/bin/api"]
|
ENTRYPOINT ["/usr/local/bin/api"]
|
||||||
+2
-2
@@ -53,7 +53,7 @@ services:
|
|||||||
# Databases the database checks are tested against:
|
# Databases the database checks are tested against:
|
||||||
# docker compose --profile checks up -d --wait
|
# docker compose --profile checks up -d --wait
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11
|
image: mariadb:11@sha256:e1d5495f445654134f226f55a41ce0da227116f6f27f283101f405c794d841fc
|
||||||
profiles: [checks]
|
profiles: [checks]
|
||||||
environment: {MARIADB_ROOT_PASSWORD: checkpw, MARIADB_DATABASE: shop}
|
environment: {MARIADB_ROOT_PASSWORD: checkpw, MARIADB_DATABASE: shop}
|
||||||
ports: ["13306:3306"]
|
ports: ["13306:3306"]
|
||||||
@@ -93,7 +93,7 @@ services:
|
|||||||
retries: 60
|
retries: 60
|
||||||
|
|
||||||
kafka:
|
kafka:
|
||||||
image: apache/kafka-native:4.1.1
|
image: apache/kafka-native:4.1.1@sha256:b8faca36f5385f90e46861ea0b2f532ebed86e9b2868b717c75a67f6fda0c7ce
|
||||||
profiles: [checks]
|
profiles: [checks]
|
||||||
ports: ["19092:9092"]
|
ports: ["19092:9092"]
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user