Skip to content

Commit

Permalink
Set correct build type for the Docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Sep 3, 2024
1 parent 672419d commit ea142a5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
required: true
default: ubuntu-latest
build-type:
description: "`nightly` or `production`"
description: "`nightly` or `release`"
required: true
default: nightly
ssh-connect-string:
Expand Down Expand Up @@ -42,12 +42,17 @@ runs:
if: ${{ startsWith(inputs.build-params, 'docker') }}
id: dockersetup
shell: bash
# TODO - needs to be smarter! And cover "prod".
# TODO - needs to be smarter!
run: |
if [ "${{ steps.getversion.outputs.LMS_VERSION }}" = "9.0" ]; then
if [ "${{ inputs.build-type }}" = "release" ]; then
echo "LMS_TAG=--tag=latest" >> $GITHUB_OUTPUT
elif [ "${{ steps.getversion.outputs.LMS_VERSION }}" = "9.0" ]; then
echo "LMS_TAG=--tag=dev" >> $GITHUB_OUTPUT
else
elif [ "${{ steps.getversion.outputs.LMS_VERSION }}" = "8.5" ]; then
echo "LMS_TAG=--tag=stable" >> $GITHUB_OUTPUT
else
echo "UNKNOWN DOCKER TARGET TAG"
exit 1
fi
Expand Down

0 comments on commit ea142a5

Please sign in to comment.