File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,12 +265,21 @@ jobs:
265265 IMAGE_TAG="${{ steps.package_info.outputs.version }}"
266266 FULL_IMAGE="${{ secrets.ACR_URL }}/${IMAGE_NAME}:${IMAGE_TAG}"
267267 LATEST_IMAGE="${{ secrets.ACR_URL }}/${IMAGE_NAME}:latest"
268-
268+
269269 echo "Building Docker image: ${FULL_IMAGE}"
270-
271- # Build the Docker image
272- docker build -t "${FULL_IMAGE}" -t "${LATEST_IMAGE}" .
273-
270+
271+ # Check if Dockerfile expects PACKAGE_URL build arg (for Reframe)
272+ if grep -q "ARG PACKAGE_URL" Dockerfile 2>/dev/null; then
273+ echo "Dockerfile requires PACKAGE_URL build argument"
274+ # Default package URL for Reframe SWIFT CBPR package
275+ PACKAGE_URL="${PACKAGE_URL:-https://github.com/GoPlasmatic/reframe-package-swift-cbpr/releases/download/v2.1.0/reframe-swift-cbpr-v2.1.0.zip}"
276+ echo "Using PACKAGE_URL: ${PACKAGE_URL}"
277+ docker build --build-arg PACKAGE_URL="${PACKAGE_URL}" -t "${FULL_IMAGE}" -t "${LATEST_IMAGE}" .
278+ else
279+ echo "Building without PACKAGE_URL argument"
280+ docker build -t "${FULL_IMAGE}" -t "${LATEST_IMAGE}" .
281+ fi
282+
274283 echo "docker_image=${FULL_IMAGE}" >> $GITHUB_OUTPUT
275284 echo "docker_image_latest=${LATEST_IMAGE}" >> $GITHUB_OUTPUT
276285
You can’t perform that action at this time.
0 commit comments