fix python

This commit is contained in:
2025-09-16 15:53:47 -04:00
parent 571d0400b2
commit 9df0b969b0
3 changed files with 46 additions and 62 deletions
+12 -7
View File
@@ -71,10 +71,15 @@ jobs:
LOCAL_REGISTRY="192.168.253.221:3000"
CACHE_IMAGE="$LOCAL_REGISTRY/jskala/nfoguard:dev-buildcache"
# Clear any existing Docker configs to prevent permission issues
unset DOCKER_CONFIG
export HOME=/tmp/docker-home-dev
mkdir -p $HOME
# Enable Docker BuildKit for better caching
export DOCKER_BUILDKIT=1
# Check if cache image exists and pull it
# Check if DEV cache image exists and pull it
echo "Checking for existing DEV cache image..."
CACHE_ARGS=""
if curl -s "http://$LOCAL_REGISTRY/v2/jskala/nfoguard/manifests/dev-buildcache" > /dev/null 2>&1; then
@@ -89,13 +94,13 @@ jobs:
echo "️ No DEV cache image found (first build or cache expired)"
fi
# Build with cache (if available)
# Build DEV image with cache (if available)
echo "Building DEV image with layer caching..."
docker build \
$CACHE_ARGS \
--tag nfoguard:dev \
--tag nfoguard:dev-${{ github.sha }} \
--tag "$CACHE_IMAGE" \
docker build
$CACHE_ARGS
--tag nfoguard:dev
--tag nfoguard:dev-${{ github.sha }}
--tag "$CACHE_IMAGE"
.
echo "DEV Docker image built and tagged successfully"