mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1949] [MERGED] Add support for service containers #2206
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#2206
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/1949
Author: @GuessWhoSamFoo
Created: 8/7/2023
Status: ✅ Merged
Merged: 10/19/2023
Merged by: @mergify[bot]
Base:
master← Head:service-container📝 Commits (10+)
cbc838dSupport services (#42)5cc4bd0Support services options (#45)ca623ceSupport intepolation forenvofservices(#47)7a09a48Support servicescredentials(#51)92f9cc7Add ContainerMaxLifetime and ContainerNetworkMode optionsbcfbd28Fix container network issue (#56)a168f8fCheck volumes (#60)78e4613Remove ContainerMaxLifetime; fix lint2cfb56bRemove unused ValidVolumes973a5d8Remove ConnectToNetwork📊 Changes
14 files changed (+469 additions, -100 deletions)
View changed files
📝
cmd/input.go(+1 -0)📝
cmd/root.go(+3 -0)📝
pkg/container/container_types.go(+21 -17)➕
pkg/container/docker_network.go(+79 -0)📝
pkg/container/docker_run.go(+34 -16)📝
pkg/container/docker_run_test.go(+1 -0)📝
pkg/container/docker_stub.go(+12 -0)📝
pkg/runner/job_executor.go(+8 -2)📝
pkg/runner/run_context.go(+208 -25)📝
pkg/runner/runner.go(+41 -40)📝
pkg/runner/runner_test.go(+5 -0)➕
pkg/runner/testdata/services-host-network/push.yml(+14 -0)➕
pkg/runner/testdata/services-with-container/push.yml(+16 -0)➕
pkg/runner/testdata/services/push.yaml(+26 -0)📄 Description
Closes https://github.com/nektos/act/issues/173
This PR cherry picks:
https://gitea.com/gitea/act/pulls/50 is not moved over as it does not exist as a Github Action feature.
Gitea specific features such as
createSimpleContainerNameand theAutoRemoveflag was removed during this process. In addition,ContainerMaxLifetimeis also removed as since running/bin/sleep 0by default can be confusing and doesn't seem to have a use case outside of usage as an sdk.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.