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
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:
parent
ac193950dd
commit
a7ddc95a7b
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -420,6 +420,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: false
|
||||
load: true
|
||||
tags: pote:test
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user