-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 from DataDog/francois.visconte/STREAMS-2235/i…
…mage-signing Setup image signing for kafka-kit
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
variables: | ||
DOCKER_IMAGE: registry.ddbuild.io/docker:24.0.4-gbi-focal | ||
|
||
build-staging: | ||
image: registry.ddbuild.io/docker:20.10.3 | ||
id_tokens: | ||
DDSIGN_ID_TOKEN: | ||
aud: image-integrity | ||
image: $DOCKER_IMAGE | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME != "master"' | ||
tags: ["runner:docker"] | ||
script: | ||
- docker build -t registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} --label target=staging --target dd-image -f Dockerfile . | ||
- docker push registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} | ||
- ddsign sign registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} --digest-from-docker | ||
|
||
|
||
build-prod: | ||
image: registry.ddbuild.io/docker:20.10.3 | ||
id_tokens: | ||
DDSIGN_ID_TOKEN: | ||
aud: image-integrity | ||
image: $DOCKER_IMAGE | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME == "master"' | ||
tags: ["runner:docker"] | ||
script: | ||
- docker build -t registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} --label target=prod --target dd-image -f Dockerfile . | ||
- docker push registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} | ||
- ddsign sign registry.ddbuild.io/kafka-kit:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA} --digest-from-docker |