Skip to content

Commit

Permalink
Fix release script tagging invalid image
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Nov 2, 2023
1 parent 3d2080d commit cbbf185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else
fi

# Ensure the builder is bootstrapped and ready to use
docker buildx inspect --bootstrap
docker buildx inspect --bootstrap &> /dev/null

for arch in "${archs[@]}"; do
echo "Building for $arch..."
Expand All @@ -66,7 +66,7 @@ fi
docker buildx build "${args[@]}" -t $base:$tag -t $base:latest -f Dockerfile .

# Check if archs contains the current. If so, then output a message!
if [[ " ${archs[@]} " =~ " ${current} " ]]; then
if [[ -z "${CI:-}" ]] && [[ " ${archs[@]} " =~ " ${current} " ]]; then
docker tag $base:$tag envbuilder:latest
echo "Tagged $current as envbuilder:latest!"
fi

0 comments on commit cbbf185

Please sign in to comment.