Skip to content

Commit

Permalink
fix script name
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Dec 18, 2023
1 parent c7923d4 commit f5ddb19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
# Image Tag, rc-tag
##############################


# Get release version
DESIRED_TAG="${1:-"main"}"

# Get eventing-manager tag from sec-scanners-config.yaml
SEC_SCAN_TO_CHECK="${2:-europe-docker.pkg.dev/kyma-project/prod/eventing-manager}"
SEC_SCAN_TO_CHECK="${2:-europe-docker.pkg.dev/kyma-project/prod/nats-manager}"
IMAGE_TAG=$(cat sec-scanners-config.yaml | grep "${SEC_SCAN_TO_CHECK}" | cut -d : -f 2)

# Get rc-tag
Expand All @@ -19,12 +18,12 @@ RC_TAG=$(cat sec-scanners-config.yaml | grep "${RC_TAG_TO_CHECK}" | cut -d : -f

# Check IMAGE_TAG and required image tag
if [[ "$IMAGE_TAG" != "$DESIRED_TAG" ]] || [[ "$RC_TAG" != "$DESIRED_TAG" ]]; then
# ERROR: Tag issue
echo "Tags are not correct:
# ERROR: Tag issue
echo "Tags are not correct:
- wanted: $DESIRED_TAG
- security-scanner image tag: $IMAGE_TAG
- rc-tag: $RC_TAG"
exit 1
exit 1
fi

# OK: Everything is fine
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: ./.github/scripts/verify_is_on_release_branch.sh

- name: Check sec-scanner-config.yaml
run: ./.github/scripts/check_sec-scanner-info.sh
run: ./.github/scripts/check_sec-scanner-config.sh

- name: Verify that the tag does not exist
run: ./.github/scripts/check_tag_does_not_exist.sh ${{ github.event.inputs.name }}
Expand Down
1 change: 1 addition & 0 deletions sec-scanners-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module-name: nats
rc-tag: 1.0.2
protecode:
- europe-docker.pkg.dev/kyma-project/prod/nats-manager:v20231023-67159afa
- europe-docker.pkg.dev/kyma-project/prod/external/natsio/prometheus-nats-exporter:0.13.0
Expand Down

0 comments on commit f5ddb19

Please sign in to comment.