Class Container
- Namespace
- Invex.StructuredText.GithubActions.GithubActionModel
- Assembly
- Invex.StructuredText.GithubActions.dll
A Docker container that a job runs in (container) or that hosts a service (services).
public sealed record Container
- Inheritance
-
objectContainer
Constructors
Container()
public Container()
Properties
Credentials
Credentials for the container registry hosting the image, when it is private.
public Credentials? Credentials { get; init; }
Property Value
Env
Environment variables to set inside the container.
public IReadOnlyDictionary<string, Template>? Env { get; init; }
Property Value
- IReadOnlyDictionary<string, Template>
Image
The Docker image to use, e.g. node:20 or a full registry path.
public required Template Image { get; init; }
Property Value
Options
Additional options passed to docker create (options).
public Template? Options { get; init; }
Property Value
Ports
Ports to expose on the container.
public IReadOnlyList<Template>? Ports { get; init; }
Property Value
- IReadOnlyList<Template>
Volumes
Volumes for the container to use, as source/destination pairs or named volumes.
public IReadOnlyList<Template>? Volumes { get; init; }
Property Value
- IReadOnlyList<Template>