diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5bdddfd..e2b56de 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -74,7 +74,7 @@ jobs: RABBITMQ_DEFAULT_USER: check RABBITMQ_DEFAULT_PASS: checkpw kafka: - image: apache/kafka-native:4.1.1 + image: apache/kafka-native:4.1.1@sha256:b8faca36f5385f90e46861ea0b2f532ebed86e9b2868b717c75a67f6fda0c7ce env: KAFKA_NODE_ID: 1 KAFKA_PROCESS_ROLES: broker,controller @@ -146,7 +146,7 @@ jobs: # once the PACKAGE_TOKEN secret (write:package) exists. runs-on: ubuntu-latest container: - image: docker:cli + image: docker:cli@sha256:34507eb5069d8be82c95dd3b6987d4250fd5fee49b82e2509b7d7a7030740d6d defaults: run: shell: sh diff --git a/Dockerfile b/Dockerfile index 95d9a0f..dbb144d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}" \ -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/ USER nonroot ENTRYPOINT ["/usr/local/bin/api"] diff --git a/compose.yaml b/compose.yaml index 81d1200..610790c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -93,7 +93,7 @@ services: retries: 60 kafka: - image: apache/kafka-native:4.1.1 + image: apache/kafka-native:4.1.1@sha256:b8faca36f5385f90e46861ea0b2f532ebed86e9b2868b717c75a67f6fda0c7ce profiles: [checks] ports: ["19092:9092"] environment: