Skip to content

Commit

Permalink
build: passing MPS_VERSION didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Oct 30, 2024
1 parent fd845e7 commit 6fda24b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: MPS_VERSION="${{ inputs.mps_version }}" ./docker-publish.sh
4 changes: 1 addition & 3 deletions docker-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down

0 comments on commit 6fda24b

Please sign in to comment.