-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildstage_deliver.tf
68 lines (51 loc) · 2.17 KB
/
buildstage_deliver.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## Copyright © 2021, 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_devops_build_pipeline_stage" "test_deliver_artifact_stage" {
depends_on = [oci_devops_build_pipeline_stage.test_build_pipeline_stage]
#Required
build_pipeline_id = oci_devops_build_pipeline.test_build_pipeline.id
build_pipeline_stage_predecessor_collection {
#Required
items {
#Required
id = oci_devops_build_pipeline_stage.test_build_pipeline_stage.id
}
}
build_pipeline_stage_type = var.build_pipeline_stage_deliver_artifact_stage_type
deliver_artifact_collection {
#Optional
items {
#Optional
artifact_name = var.build_pipeline_stage_deliver_artifact_collection_items_artifact_name_default
artifact_id = oci_devops_deploy_artifact.test_deploy_artifact_default.id
}
}
display_name = "${var.deliver_artifact_stage_display_name}-defaultImage"
defined_tags = { "${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
}
resource "oci_devops_build_pipeline_stage" "test_deliver_artifact_stage2" {
depends_on = [oci_devops_build_pipeline_stage.test_build_pipeline_stage]
#Required
build_pipeline_id = oci_devops_build_pipeline.test_build_pipeline.id
build_pipeline_stage_predecessor_collection {
#Required
items {
#Required
id = oci_devops_build_pipeline_stage.test_build_pipeline_stage.id
}
}
build_pipeline_stage_type = var.build_pipeline_stage_deliver_artifact_stage_type
deliver_artifact_collection {
#Optional
items {
#Optional
artifact_id = oci_devops_deploy_artifact.test_deploy_artifact_custom.id
artifact_name = var.build_pipeline_stage_deliver_artifact_collection_items_artifact_name_custom
}
}
display_name = "${var.deliver_artifact_stage_display_name}-customImage"
defined_tags = { "${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
}
locals {
artifact_references = ["default","custom"]
}