generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathartifact.tf
32 lines (26 loc) · 1.35 KB
/
artifact.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## Copyright (c) 2022, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
resource "oci_artifacts_container_repository" "test_container_repository" {
#Required
compartment_id = var.compartment_ocid
display_name = "queue-fn-automation-${random_id.tag.hex}"
#Optional
is_public = var.container_repository_is_public
}
resource "oci_devops_deploy_artifact" "test_deploy_artifact" {
#Required
argument_substitution_mode = var.deploy_artifact_argument_substitution_mode
deploy_artifact_source {
#Required
deploy_artifact_source_type = var.deploy_artifact_deploy_artifact_source_deploy_artifact_source_type
#Optional
image_uri = "${local.ocir_docker_repository}/${local.ocir_namespace}/${oci_artifacts_container_repository.test_container_repository.display_name}:$${BUILDRUN_HASH}"
# image_digest = ""
# image_digest = oci_devops_build_run.test_build_run.build_outputs[0].delivered_artifacts[0].items[0].delivered_artifact_hash
repository_id = oci_devops_repository.test_repository.id
}
deploy_artifact_type = var.deploy_artifact_deploy_artifact_type
project_id = oci_devops_project.test_project.id
#Optional
display_name = "${oci_artifacts_container_repository.test_container_repository.display_name}"
}