[GH-ISSUE #33] Abort run when act fails to build docker image #19

Closed
opened 2026-03-01 21:39:10 +03:00 by kerem · 2 comments
Owner

Originally created by @sosedoff on GitHub (Feb 13, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/33

When act fails to build a docker image (for whatever reason) it should print out some error and bail, instead of resuming the run.

act pull_request
[build] docker build -t pull-request-action:874ac47 /Users/sosedoff/Experiments/test-action/pull-request-action
[build] docker run image=pull-request-action:874ac47 entrypoint=[] cmd=[]
Error: Error: No such image: pull-request-action:874ac47

I can see the docker build error with act -v pull_request:

DEBU[0000] Loading revision from git directory '/Users/sosedoff/Experiments/test-action/.git'
DEBU[0000] HEAD points to 'refs/heads/pr1'
DEBU[0000] Found revision: 874ac47e39077f506a73ceb0dea94b4eb51d5770
DEBU[0000] Writing entry to tarball workflow/event.json len:2
[build] docker build -t pull-request-action:874ac47 /Users/sosedoff/Experiments/test-action/pull-request-action
[build] Building image from '/Users/sosedoff/Experiments/test-action/pull-request-action'
DEBU[0000] Creating archive for build context dir '/Users/sosedoff/Experiments/test-action/pull-request-action' with relative dockerfile 'Dockerfile'
[build] Creating image from context dir '/Users/sosedoff/Experiments/test-action/pull-request-action' with tag 'pull-request-action:874ac47'
[build] Step 1/2 : FROM alpine:slim
[build]
[build] manifest for alpine:slim not found
[build] docker run image=pull-request-action:874ac47 entrypoint=[] cmd=[]
DEBU[0000] Error: No such image: pull-request-action:874ac47
DEBU[0000] Error: No such image: pull-request-action:874ac47
Error: Error: No such image: pull-request-action:874ac47
Originally created by @sosedoff on GitHub (Feb 13, 2019). Original GitHub issue: https://github.com/nektos/act/issues/33 When act fails to build a docker image (for whatever reason) it should print out some error and bail, instead of resuming the run. ``` act pull_request [build] docker build -t pull-request-action:874ac47 /Users/sosedoff/Experiments/test-action/pull-request-action [build] docker run image=pull-request-action:874ac47 entrypoint=[] cmd=[] Error: Error: No such image: pull-request-action:874ac47 ``` I can see the docker build error with `act -v pull_request`: ``` DEBU[0000] Loading revision from git directory '/Users/sosedoff/Experiments/test-action/.git' DEBU[0000] HEAD points to 'refs/heads/pr1' DEBU[0000] Found revision: 874ac47e39077f506a73ceb0dea94b4eb51d5770 DEBU[0000] Writing entry to tarball workflow/event.json len:2 [build] docker build -t pull-request-action:874ac47 /Users/sosedoff/Experiments/test-action/pull-request-action [build] Building image from '/Users/sosedoff/Experiments/test-action/pull-request-action' DEBU[0000] Creating archive for build context dir '/Users/sosedoff/Experiments/test-action/pull-request-action' with relative dockerfile 'Dockerfile' [build] Creating image from context dir '/Users/sosedoff/Experiments/test-action/pull-request-action' with tag 'pull-request-action:874ac47' [build] Step 1/2 : FROM alpine:slim [build] [build] manifest for alpine:slim not found [build] docker run image=pull-request-action:874ac47 entrypoint=[] cmd=[] DEBU[0000] Error: No such image: pull-request-action:874ac47 DEBU[0000] Error: No such image: pull-request-action:874ac47 Error: Error: No such image: pull-request-action:874ac47 ```
kerem closed this issue 2026-03-01 21:39:10 +03:00
Author
Owner

@cplee commented on GitHub (Feb 14, 2019):

@sosedoff what version of act are you using?

<!-- gh-comment-id:463779903 --> @cplee commented on GitHub (Feb 14, 2019): @sosedoff what version of `act` are you using?
Author
Owner

@sosedoff commented on GitHub (Feb 14, 2019):

Uh, i don't know which version i was using when i saw the error. I updated (like with my other issue) and it's good now.

<!-- gh-comment-id:463782708 --> @sosedoff commented on GitHub (Feb 14, 2019): Uh, i don't know which version i was using when i saw the error. I updated (like with my other issue) and it's good now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#19
No description provided.