From 3494f0e7aea4d00cdc0824536343ea743e11958a Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer Date: Thu, 14 Sep 2023 09:38:48 +0200 Subject: [PATCH] bump image before release --- scripts/check_image.sh | 5 ++--- sec-scanners-config.yaml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/check_image.sh b/scripts/check_image.sh index dd94b1ca..cc3683b7 100755 --- a/scripts/check_image.sh +++ b/scripts/check_image.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash REF_NAME="${1:-"main"}" -RAW_EXPECTED_SHA=$(git log "${REF_NAME}" --max-count 1 --skip 1 --format=format:%H) -SHORT_EXPECTED_SHA=${RAW_EXPECTED_SHA:0:8} -DATE="v$(git log "${REF_NAME}" --max-count 1 --skip 1 --format=format:%ad --date=format:'%Y%m%d')" +SHORT_EXPECTED_SHA=$(git rev-parse --short=8 "${REF_NAME}~") +DATE="v$(git show ${SHORT_EXPECTED_SHA} --date=format:'%Y%m%d' --format=%ad -q)" EXPECTED_TAG="${DATE}-${SHORT_EXPECTED_SHA}" IMAGE_TO_CHECK="${2:-europe-docker.pkg.dev/kyma-project/prod/nats-manager}" diff --git a/sec-scanners-config.yaml b/sec-scanners-config.yaml index 37996617..c1117189 100644 --- a/sec-scanners-config.yaml +++ b/sec-scanners-config.yaml @@ -1,6 +1,6 @@ module-name: nats-manager protecode: - - europe-docker.pkg.dev/kyma-project/prod/nats-manager:v20230913-76dab125 + - europe-docker.pkg.dev/kyma-project/prod/nats-manager:v20230913-9746cb0c - europe-docker.pkg.dev/kyma-project/prod/external/natsio/prometheus-nats-exporter:0.12.0 - europe-docker.pkg.dev/kyma-project/prod/external/natsio/nats-server-config-reloader:0.12.0 - europe-docker.pkg.dev/kyma-project/prod/external/nats:v20230620-2.9.18-alpine3.18