* feat: publish cli and os-image to NVCR and S3, agent .deb to NVCR
nSpect only accepts binary-artifact registrations from Artifactory,
CloudFront URLs, git-committed files, or NGC Resources -- not GHCR, and
not a plain NVCR/OCI push either. cli and os-image had no accepted
source at all. Adds:
- cli: GHCR, NVCR, and S3+CloudFront (new, was GitHub Release only)
- os-image: NVCR and S3+CloudFront (new; GHCR already existed)
- agent .deb: NVCR (new; GHCR and S3+CloudFront already existed)
New generic scripts/upload-s3-flat.sh (not agent's apt-specific
uploader) for cli/os-image. New GitHub Environments needed before the
S3 workflows can run: `s3-publish` (S3_PUBLISH_S3_URI,
S3_PUBLISH_AWS_ROLE_ARN, S3_PUBLISH_AWS_REGION). The IAM policy
widening for the nke-packages/nkectl/* and nke-packages/os-image/*
prefixes is tracked separately, not in this PR.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* fix(release): address review findings on NVCR/S3 publish workflows
- os-image publish-nvcr/publish-s3: fix needs: missing matrix,
add dry_run gate, move GHCR token into env
- cli-artifact: switch GHCR login to oras (drop docker/login-action)
- cli-artifact-nvcr: fix header comment, add security-events perm
- cli-s3-publish, os-image publish-s3: real CloudFront reachability
check (curl -I, fail on non-200) instead of an echoed URL
- agent-deb-publish publish-nvcr: add "show published index" step
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* fix(release): guard publish-s3 against dry_run too
workflow_dispatch can target an existing tag ref, which would
still match publish-s3's if: and then fail pulling a GHCR
artifact the (dry-run) publish job never pushed.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* fix(release): derive CloudFront verify path from S3_PUBLISH_S3_URI
Both verify steps hardcoded nke-packages/ instead of deriving it
from the same S3_URI the upload step already uses, so the check
would go stale silently if that variable's prefix ever changes.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
---------
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>