Skip to content

Commit

Permalink
fix:修复limiter单机docker镜像问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Oct 16, 2022
1 parent e4d3f0e commit 8d0c743
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docker-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
run: |
set -e
cd deploy/standalone
POLARIS_GIT_PATH=https://github.com/polarismesh
DIR_NAME=polaris-standalone-release_${SERVER_VERSION}.${GOOS}
rm -rf ${DIR_NAME}
mkdir ${DIR_NAME}
Expand All @@ -80,22 +80,23 @@ jobs:
done
platforms=${platforms::-1}
cp ../vm/install-${GOOS}.sh ./install.sh
cp ../vm/uninstall-${GOOS}.sh ./uninstall.sh
cp ../vm/prometheus-help.sh ./prometheus-help.sh
cp ../vm/port.properties ./port.properties
cp ../vm/Dockerfile ./Dockerfile
echo "#!/bin/bash" >"run.sh"
echo "" >>"run.sh"
echo "bash install.sh" >>"run.sh"
echo "while ((1))" >>"run.sh"
echo "do" >>"run.sh"
echo " sleep 1" >>"run.sh"
echo "done" >>"run.sh"
docker_repository="polarismesh"
docker_image="polaris-server-standalone"
docker_tag=${SERVER_VERSION}
docker buildx build --network=host --build-arg SERVER_VERSION="${SERVER_VERSION}" --build-arg CONSOLE_VERSION="${CONSOLE_VERSION}" --build-arg LIMITER_VERSION="${LIMITER_VERSION}" -t ${docker_repository}/${docker_image}:${docker_tag} -t ${docker_repository}/${docker_image}:latest --platform ${platforms} --push ./

0 comments on commit 8d0c743

Please sign in to comment.