diff --git a/Dockerfile b/Dockerfile index 32597ef..34b1974 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM public.ecr.aws/docker/library/alpine:3.21 +LABEL ACT_IMAGE=true + RUN apk add --no-cache docker-cli-buildx bash WORKDIR /usr/src diff --git a/entrypoint.sh b/entrypoint.sh index 721e83d..2fb9af4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -56,7 +56,7 @@ echo "Running docker buildx with options: ${DOCKER_BUILD_OPTIONS[@]}" echo "Building and pushing !" docker buildx build "${DOCKER_BUILD_OPTIONS[@]}" echo "Cleaning up docker" -docker system prune --all --force +docker system prune --all --force --filter label!=ACT_IMAGE=true echo "imageName=${IMAGE_NAME}" >> "$GITEA_OUTPUT"