Update Dockerfile Labels + trigger zot cve scan
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
21
.drone.yml
21
.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:
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user