From 2adbf234f17afbfa9c00fcb44cf9086398e64ca5 Mon Sep 17 00:00:00 2001 From: danamzulescu-codefresh Date: Sun, 9 Apr 2023 11:56:36 -0500 Subject: [PATCH] Update build_and_push.yml --- .github/workflows/build_and_push.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 8063115..102e5bc 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -80,16 +80,12 @@ jobs: run: | if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then # If git ref is a tag, set docker_image_tag to the tag name - docker_image_tag="${{ github.ref/refs\/tags\//}}" + docker_image_tag="${{ github.ref/refs\/tags\// }}" else # If git ref is not a tag, set docker_image_tag to the commit hash docker_image_tag="${{ github.sha }}" fi - - echo "1" - echo "$docker_image_tag" - echo "2" - + # Replace slashes with hyphens using tr command docker_image_tag=$(echo "$docker_image_tag" | tr '/' '-') # Replace other special characters with hyphens