Fix docker-build-test: Load image into local Docker daemon
All checks were successful
CI / lint-and-test (push) Successful in 2m32s
CI / secret-scanning (push) Successful in 1m34s
CI / security-scan (push) Successful in 2m11s
CI / dependency-scan (push) Successful in 1m38s
CI / sast-scan (push) Successful in 2m46s
CI / container-scan (push) Successful in 2m15s
CI / sonar-analysis (push) Successful in 3m49s
CI / docker-build-test (push) Successful in 1m55s
CI / workflow-summary (push) Successful in 1m31s

ISSUE:
======
- Docker build succeeds but test fails
- Error: Unable to find image 'pote:test' locally
- Image built in buildx builder but not loaded into local daemon
- docker run can't find the image to test

FIX:
====
- Added load: true to docker/build-push-action
- Loads image into local Docker daemon after build
- Allows docker run to test the image

CHANGES:
========
- docker-build-test job: Added load: true to build-push-action
- Image is now available in local daemon for testing

This ensures the Docker image can be tested after building.
This commit is contained in:
ilia 2026-01-10 15:15:45 -05:00
parent ac193950dd
commit a7ddc95a7b

View File

@ -420,6 +420,7 @@ jobs:
with: with:
context: . context: .
push: false push: false
load: true
tags: pote:test tags: pote:test
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max