Skip to content

Commit 2891b2d

Browse files
authored
Sign agent bundle stage images (#6001)
1 parent 15587f3 commit 2891b2d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ agent-bundle-linux:
395395
- $TAG
396396
id_tokens: # http://go/gitlab-17
397397
CI_JOB_JWT:
398-
aud: $CICD_VAULT_ADDR
398+
aud:
399+
- $CICD_VAULT_ADDR
400+
- $SIGNING_PRD_URL
399401
script:
400402
- *docker-reader-role
401403
- docker login -u $CIRCLECI_QUAY_USERNAME -p $CIRCLECI_QUAY_PASSWORD quay.io

packaging/bundle/scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ if [[ "$PUSH_CACHE" = "yes" ]]; then
5959
--push \
6060
--cache-to=type=inline \
6161
$DOCKER_OPTS
62+
# This command is only available internally, but the image is
63+
# pushed only from internal CI, so it's safe to leave it here.
64+
artifact-ci sign docker $stage_image
6265
done
6366
else
6467
if [[ -d "$CACHE_DIR" ]]; then

0 commit comments

Comments
 (0)