Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99b8ed1996 | |||
| 18868a47fc | |||
| cb5bd01a93 | |||
| 72ebde31ce | |||
| 7c79bf066a |
@@ -110,6 +110,7 @@ jobs:
|
|||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
pull: true # Always pull fresh base images to get latest security patches
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
@@ -114,6 +114,8 @@ jobs:
|
|||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
# Always pull fresh base images to get latest security patches
|
||||||
|
pull: true
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
no-cache: ${{ github.event_name == 'schedule' || inputs.force_rebuild }}
|
no-cache: ${{ github.event_name == 'schedule' || inputs.force_rebuild }}
|
||||||
|
pull: true # Always pull fresh base images to get latest security patches
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=security-scan
|
VERSION=security-scan
|
||||||
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||||
@@ -122,7 +123,7 @@ jobs:
|
|||||||
echo "Checking key security packages:" >> $GITHUB_STEP_SUMMARY
|
echo "Checking key security packages:" >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
docker run --rm --entrypoint "" ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }} \
|
docker run --rm --entrypoint "" ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }} \
|
||||||
sh -c "apk info c-ares curl libcurl openssl" >> $GITHUB_STEP_SUMMARY
|
sh -c "apk update >/dev/null 2>&1 && apk info c-ares curl libcurl openssl" >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- name: Create security scan summary
|
- name: Create security scan summary
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ ARG CADDY_VERSION=2.10.2
|
|||||||
## plain Alpine base image and overwrite its caddy binary with our
|
## plain Alpine base image and overwrite its caddy binary with our
|
||||||
## xcaddy-built binary in the later COPY step. This avoids relying on
|
## xcaddy-built binary in the later COPY step. This avoids relying on
|
||||||
## upstream caddy image tags while still shipping a pinned caddy binary.
|
## upstream caddy image tags while still shipping a pinned caddy binary.
|
||||||
|
# renovate: datasource=docker depName=alpine
|
||||||
ARG CADDY_IMAGE=alpine:3.23
|
ARG CADDY_IMAGE=alpine:3.23
|
||||||
|
|
||||||
# ---- Cross-Compilation Helpers ----
|
# ---- Cross-Compilation Helpers ----
|
||||||
@@ -203,6 +204,7 @@ RUN mkdir -p /crowdsec-out/config && \
|
|||||||
cp -r config/* /crowdsec-out/config/ || true
|
cp -r config/* /crowdsec-out/config/ || true
|
||||||
|
|
||||||
# ---- CrowdSec Fallback (for architectures where build fails) ----
|
# ---- CrowdSec Fallback (for architectures where build fails) ----
|
||||||
|
# renovate: datasource=docker depName=alpine
|
||||||
FROM alpine:3.23 AS crowdsec-fallback
|
FROM alpine:3.23 AS crowdsec-fallback
|
||||||
|
|
||||||
WORKDIR /tmp/crowdsec
|
WORKDIR /tmp/crowdsec
|
||||||
|
|||||||
Reference in New Issue
Block a user