Skip to content

Commit

Permalink
bump image before release
Browse files Browse the repository at this point in the history
  • Loading branch information
k15r committed Sep 14, 2023
1 parent 9746cb0 commit 3494f0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/check_image.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion sec-scanners-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3494f0e

Please sign in to comment.