RegistryTask

class RegistryTask : KotlinCustomResource

Manages a Container Registry Task.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.RegistryTask;
import com.pulumi.azure.containerservice.RegistryTaskArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskPlatformArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskDockerStepArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleRegistry = new Registry("exampleRegistry", RegistryArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("Basic")
.build());
var exampleRegistryTask = new RegistryTask("exampleRegistryTask", RegistryTaskArgs.builder()
.containerRegistryId(exampleRegistry.id())
.platform(RegistryTaskPlatformArgs.builder()
.os("Linux")
.build())
.dockerStep(RegistryTaskDockerStepArgs.builder()
.dockerfilePath("Dockerfile")
.contextPath("https://github.com/<username>/<repository>#<branch>:<folder>")
.contextAccessToken("<github personal access token>")
.imageNames("helloworld:{{.Run.ID}}")
.build())
.build());
}
}

Import

Container Registry Tasks can be imported using the resource id, e.g.

$ pulumi import azure:containerservice/registryTask:RegistryTask example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/tasks/task1

Properties

Link copied to clipboard
val agentPoolName: Output<String>?

The name of the dedicated Container Registry Agent Pool for this Container Registry Task.

Link copied to clipboard

A agent_setting block as defined below.

Link copied to clipboard

A base_image_trigger block as defined below.

Link copied to clipboard

The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created.

Link copied to clipboard

A docker_step block as defined below.

Link copied to clipboard
val enabled: Output<Boolean>?

Should this Container Registry Task be enabled? Defaults to true.

Link copied to clipboard

A encoded_step block as defined below.

Link copied to clipboard

A file_step block as defined below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val isSystemTask: Output<Boolean>?

Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to false.

Link copied to clipboard
val logTemplate: Output<String>?

The template that describes the run log artifact.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created.

Link copied to clipboard

A platform block as defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

One registry_credential block as defined below.

Link copied to clipboard

One or more source_trigger blocks as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags which should be assigned to the Container Registry Task.

Link copied to clipboard
val timeoutInSeconds: Output<Int>?

The timeout of this Container Registry Task in seconds. The valid range lies from 300 to 28800. Defaults to 3600.

Link copied to clipboard

One or more timer_trigger blocks as defined below.

Link copied to clipboard
val urn: Output<String>