Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoTheTaco committed Aug 11, 2022
1 parent 59f8e68 commit 46db0d8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tools/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ if [ "$latestVersion" = "$currentVersion" ]; then
exit 1
fi

# Make sure docker is running
if isWindows; then
if ! isDockerRunning; then
echo "Docker not running! Starting it now..."
"/c/Program Files/Docker/Docker/Docker Desktop.exe" &
while ! isDockerRunning; do
echo "Waiting for Docker..."
sleep 5
done
echo "Done."
fi
fi

# Login to GitHub container registry
echo "Logging in to GitHub container registry..."
echo "$personalAccessToken" | docker login ghcr.io -u tychothetaco --password-stdin
Expand Down Expand Up @@ -75,19 +88,6 @@ fi
scriptDirectory="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" &>/dev/null && pwd 2>/dev/null)"
projectDirectory="$(cd "$scriptDirectory/../" && pwd)"

# Make sure docker is running
if isWindows; then
if ! isDockerRunning; then
echo "Docker not running! Starting it now..."
"/c/Program Files/Docker/Docker/Docker Desktop.exe" &
while ! isDockerRunning; do
echo "Waiting for Docker..."
sleep 5
done
echo "Done."
fi
fi

# Build and push docker image
docker buildx build \
--platform linux/amd64,linux/arm64/v8,linux/arm/v7 \
Expand Down

0 comments on commit 46db0d8

Please sign in to comment.