Skip to content
Snippets Groups Projects
Commit bfcae4d0 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

using sed to trim dashes

parent cbc5be47
No related branches found
No related tags found
2 merge requests!2005Development,!2002Resolve "implementing the alleinstellungsmerkmale to the about us page"
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
set -e set -e
HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53} HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53}
HELM_RELEASE_NAME=${HELM_RELEASE_NAME%%*(-)} HELM_RELEASE_NAME=$(echo $HELM_RELEASE_NAME | sed 's/-$//')
# Get All existing tags for the fpm repo # Get All existing tags for the fpm repo
echo "Fetching existing fpm tags..." echo "Fetching existing fpm tags..."
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Call script with KEEP_N variable set to specify the amount of releases to keep # Call script with KEEP_N variable set to specify the amount of releases to keep
HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53} HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53}
HELM_RELEASE_NAME=${HELM_RELEASE_NAME%%*(-)} HELM_RELEASE_NAME=$(echo $HELM_RELEASE_NAME | sed 's/-$//')
helm -n $KUBE_NAMESPACE history ${HELM_RELEASE_NAME} helm -n $KUBE_NAMESPACE history ${HELM_RELEASE_NAME}
if [ $? -ne 0 ] if [ $? -ne 0 ]
......
#!/bin/bash #!/bin/bash
HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53} HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53}
HELM_RELEASE_NAME=${HELM_RELEASE_NAME%%*(-)} HELM_RELEASE_NAME=$(echo $HELM_RELEASE_NAME | sed 's/-$//')
echo "Removing Image Tags..." echo "Removing Image Tags..."
.gitlab/deployment_scripts/cleanup_tags_revision.sh .gitlab/deployment_scripts/cleanup_tags_revision.sh
......
#!/bin/bash #!/bin/bash
HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53} HELM_RELEASE_NAME=${HELM_RELEASE_NAME:0:53}
HELM_RELEASE_NAME=${HELM_RELEASE_NAME%%*(-)} HELM_RELEASE_NAME=$(echo $HELM_RELEASE_NAME | sed 's/-$//')
helm -n $KUBE_NAMESPACE upgrade --install \ helm -n $KUBE_NAMESPACE upgrade --install \
${HELM_RELEASE_NAME} \ ${HELM_RELEASE_NAME} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment