Fix Docker repository name in build script
- Update all Docker image references to use skoszewski/jmespath-playground - Fix build.sh to create properly namespaced Docker images for Docker Hub - Update Docker run command examples with correct repository name
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "jmespath-playground",
|
"name": "jmespath-playground",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"description": "A React-based web application for testing JMESPath expressions against JSON data",
|
"description": "A React-based web application for testing JMESPath expressions against JSON data",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ if command -v docker &> /dev/null; then
|
|||||||
docker build \
|
docker build \
|
||||||
--build-arg VERSION="$VERSION" \
|
--build-arg VERSION="$VERSION" \
|
||||||
--build-arg IS_RELEASE="true" \
|
--build-arg IS_RELEASE="true" \
|
||||||
-t jmespath-playground:$VERSION \
|
-t skoszewski/jmespath-playground:$VERSION \
|
||||||
-t jmespath-playground:latest .
|
-t skoszewski/jmespath-playground:latest .
|
||||||
echo "✅ Built Docker images: jmespath-playground:$VERSION, jmespath-playground:latest"
|
echo "✅ Built Docker images: skoszewski/jmespath-playground:$VERSION, skoszewski/jmespath-playground:latest"
|
||||||
else
|
else
|
||||||
# Development build
|
# Development build
|
||||||
PACKAGE_VERSION=$(grep '"version"' package.json | cut -d'"' -f4)
|
PACKAGE_VERSION=$(grep '"version"' package.json | cut -d'"' -f4)
|
||||||
@@ -54,9 +54,9 @@ if command -v docker &> /dev/null; then
|
|||||||
docker build \
|
docker build \
|
||||||
--build-arg VERSION="$DEV_VERSION" \
|
--build-arg VERSION="$DEV_VERSION" \
|
||||||
--build-arg IS_RELEASE="false" \
|
--build-arg IS_RELEASE="false" \
|
||||||
-t jmespath-playground:dev \
|
-t skoszewski/jmespath-playground:dev \
|
||||||
-t jmespath-playground:latest .
|
-t skoszewski/jmespath-playground:latest .
|
||||||
echo "✅ Built Docker images: jmespath-playground:dev, jmespath-playground:latest"
|
echo "✅ Built Docker images: skoszewski/jmespath-playground:dev, skoszewski/jmespath-playground:latest"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "💡 Docker not found. Container build is optional."
|
echo "💡 Docker not found. Container build is optional."
|
||||||
@@ -70,9 +70,9 @@ echo " npm run server # Run integrated server locally"
|
|||||||
if command -v docker &> /dev/null; then
|
if command -v docker &> /dev/null; then
|
||||||
VERSION=$(git tag --points-at HEAD 2>/dev/null | sed 's/^v//' | head -n 1)
|
VERSION=$(git tag --points-at HEAD 2>/dev/null | sed 's/^v//' | head -n 1)
|
||||||
if [ -n "$VERSION" ]; then
|
if [ -n "$VERSION" ]; then
|
||||||
echo " docker run -p 3000:3000 jmespath-playground:$VERSION # Run release container"
|
echo " docker run -p 3000:3000 skoszewski/jmespath-playground:$VERSION # Run release container"
|
||||||
else
|
else
|
||||||
echo " docker run -p 3000:3000 jmespath-playground:dev # Run dev container"
|
echo " docker run -p 3000:3000 skoszewski/jmespath-playground:dev # Run dev container"
|
||||||
fi
|
fi
|
||||||
echo " docker run -p 3000:3000 jmespath-playground:latest # Run latest container"
|
echo " docker run -p 3000:3000 skoszewski/jmespath-playground:latest # Run latest container"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user