Added trimming for the VERSION variable

This commit is contained in:
mdnapo 2024-10-13 18:43:15 +02:00
parent 768136696f
commit 12a16be6ed

View File

@ -11,7 +11,7 @@ jobs:
- name: "Build and push Docker image"
run: |
IMAGE_NAME="git.devdisciples.com/devdisciples/m4gdocs"
IMAGE_VERSION="$(cat version.txt)"
IMAGE_VERSION="$(cat version.txt | tr -d '[:space:]')"
VERSIONED_IMAGE_TAG="$IMAGE_NAME:$IMAGE_VERSION"
LATEST_IMAGE_TAG="$IMAGE_NAME:latest"