Skip to content

Commit

Permalink
chore(dev): add docker context
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 29, 2024
1 parent 052b7e4 commit 4dda391
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ if [ -z "$2" ]; then
dockerRepository="myshx"
fi

if [ "$stage" != "local" ]; then
context_name=muse-$stage
if ! docker context ls --format '{{.Name}}' | grep -q "^${context_name}$"; then
docker context create "${context_name}" --description "[MUSE] '$stage' Deploy Server" --docker "host=ssh://[email protected]"
fi

docker context use "$context_name"
fi

#(cd "$rootDir" && exec ./tools/scripts/openapi/regenerateOpenApi.sh)
#(cd "$rootDir" && exec ./tools/scripts/buildAndPush.sh "$stage" "$dockerRepository")
#(cd "$rootDir" && exec ./tools/scripts/stop.sh "$stage" "$dockerRepository")
Expand Down

0 comments on commit 4dda391

Please sign in to comment.