Skip to content

Commit

Permalink
build: push ccp linux image to prod mcr (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
bragi92 authored Mar 28, 2024
1 parent a549cd4 commit a80cff0
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "http://schema.express.azure.com/schemas/2015-01-01-alpha/RolloutParameters.json",
"contentVersion": "1.0.0.0",
"wait": [
{
"name": "waitSdpBakeTime",
"properties": {
"duration": "PT24H"
}
}
],
"shellExtensions": [
{
"name": "PushAgentToACR",
"type": "ShellExtensionType",
"properties": {
"maxexecutiontime": "PT1H"
},
"package": {
"reference": {
"path": "artifacts.tar.gz"
}
},
"launch": {
"command": [
"/bin/bash",
"pushAgentToAcr.sh"
],
"environmentVariables": [
{
"name": "ACR_REGISTRY",
"value": "__ACR_REGISTRY__"
},
{
"name": "PROD_ACR_REPOSITORY",
"value": "__PROD_ACR_AGENT_REPOSITORY__"
},
{
"name": "MCR_REGISTRY",
"value": "__MCR_REGISTRY__"
},
{
"name": "PROD_MCR_REPOSITORY",
"value": "__PROD_MCR_AGENT_REPOSITORY__"
},
{
"name": "DEV_MCR_REPOSITORY",
"value": "__DEV_MCR_AGENT_REPOSITORY__"
},
{
"name": "IMAGE_TAG",
"value": "__LINUX_CCP_TAG__"
}
],
"identity": {
"type": "userAssigned",
"userAssignedIdentities": [
"__MANAGED_IDENTITY__"
]
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"Notification": {
"Email": {
"To": "omscontainers@microsoft.com"
"To": "ciprometheus@microsoft.com"
}
}
},
Expand All @@ -27,6 +27,15 @@
],
"dependsOn": []
},
{
"name": "PushCCPLinuxAgent",
"targetType": "ServiceResource",
"targetName": "PushCCPLinuxAgent",
"actions": [
"Shell/PushAgentToACR"
],
"dependsOn": []
},
{
"name": "PushWindowsAgent",
"targetType": "ServiceResource",
Expand Down Expand Up @@ -81,6 +90,7 @@
],
"dependsOn": [
"PushLinuxAgent",
"PushCCPLinuxAgent",
"PushWindowsAgent",
"PushKSMChart",
"PushNEChart"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"find": "__LINUX_TAG__",
"replaceWith": "$(LinuxTag)"
},
{
"find": "__LINUX_CCP_TAG__",
"replaceWith": "$(LinuxCCPTag)"
},
{
"find": "__WINDOWS_TAG__",
"replaceWith": "$(WindowsTag)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"InstanceOf": "ShellExtension",
"RolloutParametersPath": "Parameters\\PrometheusCollector.Linux.Parameters.json"
},
{
"Name": "PushLinuxCCPAgent",
"InstanceOf": "ShellExtension",
"RolloutParametersPath": "Parameters\\PrometheusCollector.LinuxCCP.Parameters.json"
},
{
"Name": "PushWindowsAgent",
"InstanceOf": "ShellExtension",
Expand Down

0 comments on commit a80cff0

Please sign in to comment.