Skip to content

Commit

Permalink
/deploy sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Sep 21, 2023
1 parent eb1a09e commit f005194
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand All @@ -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' }}
Expand Down

0 comments on commit f005194

Please sign in to comment.