fix python
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user