Skip to content

Commit

Permalink
feat: image digest (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko authored Nov 5, 2024
1 parent ee40a49 commit ba8bec8
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 138 deletions.
12 changes: 12 additions & 0 deletions charts/cf-runtime/.ci/image-digests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -eux
MYDIR=$(dirname $0)
REPO_ROOT="${MYDIR}/../../.."

echo "Update image digests"
docker run \
-v "$REPO_ROOT:/venona" \
-u $(id -u) \
--rm \
quay.io/codefresh/codefresh-shell:0.0.20 \
/bin/bash /venona/scripts/update_values_with_digests.sh
6 changes: 3 additions & 3 deletions charts/cf-runtime/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart for Codefresh Runner
name: cf-runtime
version: 6.4.8
version: 6.4.9
keywords:
- codefresh
- runner
Expand All @@ -18,8 +18,8 @@ annotations:
# Supported kinds: `added`, `changed`, `deprecated`, `removed`, `fixed`, `security`:
artifacthub.io/changes: |
- kind: added
description: "updating cf-git-cloner image, adding SKIP_TAGS_ON_UPDATE env var to skip tags on update"
description: "Added digests for images"
dependencies:
- name: cf-common
repository: oci://quay.io/codefresh/charts
version: 0.16.0
version: 0.21.0
26 changes: 13 additions & 13 deletions charts/cf-runtime/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ tests:
KUBE_DEPLOY: 'somedomain.io/codefresh/cf-deploy-kubernetes:tagoverride'
PIPELINE_DEBUGGER_IMAGE: 'somedomain.io/codefresh/cf-debugger:tagoverride'
TEMPLATE_ENGINE: 'somedomain.io/codefresh/pikolo:tagoverride'
CR_6177_FIXER: 'somedomain.io/codefresh/alpine:edge'
GC_BUILDER_IMAGE: 'somedomain.io/codefresh/cf-gc-builder:0.5.3'
CR_6177_FIXER: 'somedomain.io/alpine:tagoverride'
GC_BUILDER_IMAGE: 'somedomain.io/codefresh/cf-gc-builder:tagoverride'
COSIGN_IMAGE_SIGNER_IMAGE: 'somedomain.io/codefresh/cf-cosign-image-signer:tagoverride'
workflowLimits:
MAXIMUM_ALLOWED_TIME_BEFORE_PRE_STEPS_SUCCESS: 600
Expand Down
4 changes: 2 additions & 2 deletions charts/cf-runtime/tests/runtime/runtime_onprem_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ tests:
KUBE_DEPLOY: 'quay.io/codefresh/cf-deploy-kubernetes:tagoverride'
PIPELINE_DEBUGGER_IMAGE: 'quay.io/codefresh/cf-debugger:tagoverride'
TEMPLATE_ENGINE: 'quay.io/codefresh/pikolo:tagoverride'
CR_6177_FIXER: 'quay.io/codefresh/alpine:edge'
GC_BUILDER_IMAGE: 'quay.io/codefresh/cf-gc-builder:0.5.3'
CR_6177_FIXER: 'alpine:tagoverride'
GC_BUILDER_IMAGE: 'quay.io/codefresh/cf-gc-builder:tagoverride'
COSIGN_IMAGE_SIGNER_IMAGE: 'quay.io/codefresh/cf-cosign-image-signer:tagoverride'
workflowLimits:
MAXIMUM_ALLOWED_TIME_BEFORE_PRE_STEPS_SUCCESS: 600
Expand Down
4 changes: 4 additions & 0 deletions charts/cf-runtime/tests/runtime/runtime_onprem_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runtime:
dind:
image:
tag: tagoverride
digest: ""
resources:
requests: null
limits:
Expand Down Expand Up @@ -65,6 +66,7 @@ runtime:
engine:
image:
tag: tagoverride
digest: ""
command:
- one
- two
Expand All @@ -88,6 +90,8 @@ runtime:
KUBE_DEPLOY: quay.io/codefresh/cf-deploy-kubernetes:tagoverride
PIPELINE_DEBUGGER_IMAGE: quay.io/codefresh/cf-debugger:tagoverride
TEMPLATE_ENGINE: quay.io/codefresh/pikolo:tagoverride
CR_6177_FIXER: alpine:tagoverride
GC_BUILDER_IMAGE: quay.io/codefresh/cf-gc-builder:tagoverride
COSIGN_IMAGE_SIGNER_IMAGE: quay.io/codefresh/cf-cosign-image-signer:tagoverride
env:
FOO: BAR
Expand Down
4 changes: 2 additions & 2 deletions charts/cf-runtime/tests/runtime/runtime_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ tests:
KUBE_DEPLOY: 'quay.io/codefresh/cf-deploy-kubernetes:tagoverride'
PIPELINE_DEBUGGER_IMAGE: 'quay.io/codefresh/cf-debugger:tagoverride'
TEMPLATE_ENGINE: 'quay.io/codefresh/pikolo:tagoverride'
CR_6177_FIXER: 'quay.io/codefresh/alpine:edge'
GC_BUILDER_IMAGE: 'quay.io/codefresh/cf-gc-builder:0.5.3'
CR_6177_FIXER: 'alpine:tagoverride'
GC_BUILDER_IMAGE: 'quay.io/codefresh/cf-gc-builder:tagoverride'
COSIGN_IMAGE_SIGNER_IMAGE: 'quay.io/codefresh/cf-cosign-image-signer:tagoverride'
userEnvVars:
- name: ALICE
Expand Down
4 changes: 4 additions & 0 deletions charts/cf-runtime/tests/runtime/runtime_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ runtime:
image:
tag: tagoverride
pullPolicy: Always
digest: ""
resources:
requests: null
limits:
Expand Down Expand Up @@ -55,6 +56,7 @@ runtime:
image:
tag: tagoverride
pullPolicy: Always
digest: ""
command:
- one
- two
Expand All @@ -78,6 +80,8 @@ runtime:
KUBE_DEPLOY: quay.io/codefresh/cf-deploy-kubernetes:tagoverride
PIPELINE_DEBUGGER_IMAGE: quay.io/codefresh/cf-debugger:tagoverride
TEMPLATE_ENGINE: quay.io/codefresh/pikolo:tagoverride
CR_6177_FIXER: alpine:tagoverride
GC_BUILDER_IMAGE: quay.io/codefresh/cf-gc-builder:tagoverride
COSIGN_IMAGE_SIGNER_IMAGE: quay.io/codefresh/cf-cosign-image-signer:tagoverride
env:
FOO: BAR
Expand Down
4 changes: 4 additions & 0 deletions charts/cf-runtime/tests/values-private-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ runtime:
engine:
image:
tag: tagoverride
digest: ""
runtimeImages:
COMPOSE_IMAGE: quay.io/codefresh/compose:tagoverride
CONTAINER_LOGGER_IMAGE: quay.io/codefresh/cf-container-logger:tagoverride
Expand All @@ -18,8 +19,11 @@ runtime:
KUBE_DEPLOY: quay.io/codefresh/cf-deploy-kubernetes:tagoverride
PIPELINE_DEBUGGER_IMAGE: quay.io/codefresh/cf-debugger:tagoverride
TEMPLATE_ENGINE: quay.io/codefresh/pikolo:tagoverride
CR_6177_FIXER: alpine:tagoverride
GC_BUILDER_IMAGE: quay.io/codefresh/cf-gc-builder:tagoverride
COSIGN_IMAGE_SIGNER_IMAGE: quay.io/codefresh/cf-cosign-image-signer:tagoverride

dind:
image:
tag: tagoverride
digest: ""
Loading

0 comments on commit ba8bec8

Please sign in to comment.