mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #46] [MERGED] Handle docker image build failures #1338
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/46
Author: @sosedoff
Created: 3/2/2019
Status: ✅ Merged
Merged: 3/2/2019
Merged by: @cplee
Base:
master← Head:capture-build-error📝 Commits (2)
5330599Capture errors from docker log output1c25ee9Add an extra test📊 Changes
6 files changed (+45 additions, -19 deletions)
View changed files
📝
Makefile(+3 -0)📝
actions/runner_test.go(+2 -1)➕
actions/testdata/buildfail-action/Dockerfile(+2 -0)➕
actions/testdata/buildfail.workflow(+8 -0)📝
container/docker_build.go(+2 -1)📝
container/docker_common.go(+28 -17)📄 Description
This is related to #33 and #42.
I initially thought that after i updated to latest
actversion my issue went away. Just confirmed thatthat's not the case, and i was able to reproduce the error locally.
When running act without
-vflag and when the action's docker image fails to build, users see a cryptic message "docker image ... not found". The run should have been aborted but it's not, this has to do with the build process error handling. I added a conditional tologDockerResponsefunction to catch error message details if it's present.So now users will actually see the reason why the docker image build had failed. This change also fixed the issue when
actruns the older docker image if the most recent one has failed to build.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.