From f7dc5dd7854cb43641697d4e508df5bc6e7911aa Mon Sep 17 00:00:00 2001 From: Patrick Gniza Date: Wed, 5 Nov 2025 21:19:32 +0100 Subject: [PATCH] Update Dockerfile Labels + trigger zot cve scan --- .drone.yml | 21 +++++++++++++++++++++ Dockerfile | 2 ++ 2 files changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index d33ed60..2e928eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -65,6 +65,27 @@ steps: --amend $REGISTRY_URL/public/portainer-agent-tailscale:arm64 docker manifest push $REGISTRY_URL/public/portainer-agent-tailscale:latest + - name: trigger-zot-refresh-and-cve-scan + image: curlimages/curl:8.10.1 + environment: + ZOT_USER: + from_secret: ZOT_USER + ZOT_PASS: + from_secret: ZOT_PASS + REGISTRY_URL: + from_secret: REGISTRY_URL + commands: + - | + echo "Triggering Zot metadata refresh..." + curl -u "$DOCKER_USER:$DOCKER__PASS" -X POST "$REGISTRY_URL/v2/_zot/ext/refresh" + + echo "Triggering CVE scan..." + curl -u "$DOCKER_USER:$DOCKER_PASS" -X POST \ + -H "Content-Type: application/json" \ + "$REGISTRY_URL/v2/_zot/ext/cve/scan" \ + -d '{"repo":"public/portainer-agent-tailscale"}' + + volumes: - name: docker_sock host: diff --git a/Dockerfile b/Dockerfile index 423e947..a6e4ee3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,8 @@ LABEL org.opencontainers.image.version="1.0.0" LABEL org.opencontainers.image.authors="Patrick Buchhorst " LABEL org.opencontainers.image.source="https://gitea.buchhorster.de/portainer-agent-tailscale" LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.vendor="Buchhorster IT" + ENTRYPOINT ["/sbin/tini", "--"] CMD ["/entrypoint.sh"]