Explicitly use buildx for local script
This commit is contained in:
		
							parent
							
								
									bdf1cc507a
								
							
						
					
					
						commit
						3efcb24f50
					
				
					 3 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										1
									
								
								.github/workflows/pr.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/pr.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -26,6 +26,7 @@ jobs:
 | 
			
		|||
        uses: docker/setup-buildx-action@v1
 | 
			
		||||
        with:
 | 
			
		||||
          config: .github/buildkit.toml
 | 
			
		||||
          driver: docker
 | 
			
		||||
      - name: Build Image
 | 
			
		||||
        run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }}
 | 
			
		||||
      - name: Build ffmpeg
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
set -xe
 | 
			
		||||
set -e
 | 
			
		||||
cd "$(dirname "$0")"
 | 
			
		||||
source util/vars.sh
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,16 +3,14 @@ set -xe
 | 
			
		|||
cd "$(dirname "$0")"
 | 
			
		||||
source util/vars.sh
 | 
			
		||||
 | 
			
		||||
export DOCKER_BUILDKIT=1
 | 
			
		||||
 | 
			
		||||
if [[ -z "$QUICKBUILD" ]]; then
 | 
			
		||||
    if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
 | 
			
		||||
        docker build --tag "$BASE_IMAGE" images/base
 | 
			
		||||
        docker buildx --builder default build --load --tag "$BASE_IMAGE" images/base
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    docker build --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
 | 
			
		||||
    docker buildx --builder default build --load --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
 | 
			
		||||
 | 
			
		||||
exec docker build --tag "$IMAGE" .
 | 
			
		||||
docker buildx --builder default build --load --tag "$IMAGE" .
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue