Skip to content

Commit

Permalink
Merge pull request #251 from andreriesco/release-2.6-hot-fixes
Browse files Browse the repository at this point in the history
createDockerComposeProduction and tcb-env-setup: Fixes
  • Loading branch information
andreriesco authored Sep 4, 2024
2 parents 7aed516 + cd4b017 commit 0b550eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/bash/tcb-env-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shopt -s expand_aliases
# For DockerHub the variable can be empty, by tcb platform push command
# requires a value, so passing the default DockerHub registry to it if it is
# empty
if [$DOCKER_REGISTRY = ""]; then
if [ $DOCKER_REGISTRY = "" ]; then
export DOCKER_REGISTRY="registry-1.docker.io"
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/createDockerComposeProduction.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $localRegistry = $objSettings.host_ip

$env:LOCAL_REGISTRY="$($localRegistry):5002"
$env:TAG="$tag"
if ([string]::IsNullOrEmpty($registry)) {
if ([string]::IsNullOrEmpty($registry) -or $registry -eq "registry-1.docker.io") {
$env:DOCKER_LOGIN="$dockerLogin"
} else {
$env:DOCKER_LOGIN="$registry/$dockerLogin"
Expand Down

0 comments on commit 0b550eb

Please sign in to comment.