From f00519459ac83dff8b607bc9a79bd7c931cb02e7 Mon Sep 17 00:00:00 2001 From: Simon Liu Date: Thu, 21 Sep 2023 14:24:16 -0700 Subject: [PATCH] /deploy sandbox --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b84d398..6f2e8b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -406,6 +406,13 @@ jobs: echo "TARGET_ENV_UPPERCASE=${override_env_upper}" >> $GITHUB_ENV + - name: Lower Case Target Env + run: | + original_env_value="${TARGET_ENV_UPPERCASE}" + lowercase_value=$(echo "${original_env_value}" | tr '[:upper:]' '[:lower:]') + echo "TARGET_ENV_LOWERCASE=${lowercase_value}" >> $GITHUB_ENV + + - name: Extract metadata (tags, labels) for Docker if: | steps.pypi-test-publish.conclusion == 'success' || @@ -419,7 +426,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=semver,pattern={{raw}},value=${{ env.the_version }} - type=raw,value=${{ env.TARGET_ENV_UPPERCASE }} + type=raw,value=${{ env.TARGET_ENV_LOWERCASE }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}