Update Dockerfile Labels + trigger zot cve scan
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-05 21:19:32 +01:00
parent 8626c19d47
commit f7dc5dd785
2 changed files with 23 additions and 0 deletions

View File

@@ -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:

View File

@@ -43,6 +43,8 @@ LABEL org.opencontainers.image.version="1.0.0"
LABEL org.opencontainers.image.authors="Patrick Buchhorst <patrick@buchhorster.de>"
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"]