diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e4e5b14..9586400 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,4 +34,4 @@ jobs: run: echo "${GITHUB_REF#refs/*/}" > version.txt - name: Build and Publish Docker - run: MPS_VERSION="${{ inputs.mps_version }}" && ./docker-publish.sh \ No newline at end of file + run: MPS_VERSION="${{ inputs.mps_version }}" ./docker-publish.sh \ No newline at end of file diff --git a/docker-publish.sh b/docker-publish.sh index 8c6d2ad..8fb73d9 100755 --- a/docker-publish.sh +++ b/docker-publish.sh @@ -2,12 +2,10 @@ set -e set -x +set -u cd "$(dirname "$0")" -# Default value for MPS_VERSION -MPS_VERSION="${MPS_VERSION:=2023.2.2}" - MPS_MAJOR_VERSION=`echo $MPS_VERSION | grep -oE '20[0-9]{2}\.[0-9]+'` IMAGE_VERSION="$(./version.sh)"