Skip to content

Commit f6ec000

Browse files
Remove Caddy from preview envs (github#26336)
* remove caddy from preview envs * fix: remove location from template Co-authored-by: Peter Bengtsson <[email protected]>
1 parent 4bac41a commit f6ec000

File tree

3 files changed

+0
-68
lines changed

3 files changed

+0
-68
lines changed

.github/actions-scripts/get-preview-app-info.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
[[ -z $APP_NAME_SEED ]] && { echo "Missing APP_NAME_SEED. Exiting."; exit 1; }
1414

1515
PREVIEW_ENV_LOCATION="eastus"
16-
echo "PREVIEW_ENV_LOCATION=${PREVIEW_ENV_LOCATION}" >> $GITHUB_ENV
1716

1817
REPO_NAME="${GITHUB_REPOSITORY#*\/}"
1918
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,10 @@ jobs:
203203
template: ./azure-preview-env-template.json
204204
deploymentName: ${{ env.DEPLOYMENT_NAME }}
205205
parameters: appName="${{ env.APP_NAME }}"
206-
location="${{ env.PREVIEW_ENV_LOCATION }}"
207206
containerImage="${{ env.DOCKER_IMAGE }}"
208207
dockerRegistryUrl="${{ secrets.NONPROD_REGISTRY_SERVER }}"
209208
dockerRegistryUsername="${{ secrets.NONPROD_REGISTRY_USERNAME }}"
210209
dockerRegistryPassword="${{ secrets.NONPROD_REGISTRY_PASSWORD }}"
211-
storageAccountName="${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}"
212-
storageAccountKey="${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }}"
213210
# this shows warnings in the github actions console, because the flag is passed through a validation run,
214211
# but it *is* functional during the actual execution
215212
additionalArguments: --no-wait

azure-preview-env-template.json

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"description": "A unique name for the app"
1212
}
1313
},
14-
"location": {
15-
"type": "String"
16-
},
1714
"containerImage": {
1815
"type": "string",
1916
"defaultValue": null,
@@ -32,12 +29,6 @@
3229
},
3330
"dockerRegistryPassword": {
3431
"type": "SecureString"
35-
},
36-
"storageAccountName": {
37-
"type": "String"
38-
},
39-
"storageAccountKey": {
40-
"type": "SecureString"
4132
}
4233
},
4334
"resources": [
@@ -83,53 +74,6 @@
8374
}
8475
}
8576
}
86-
},
87-
{
88-
"name": "caddy-ssl-server",
89-
"properties": {
90-
"image": "caddy:2.4.6",
91-
"command": [
92-
"caddy",
93-
"reverse-proxy",
94-
"--from",
95-
"[concat(parameters('appName'), '.', parameters('location'), '.azurecontainer.io')]",
96-
"--to",
97-
"localhost:4000"
98-
],
99-
"ports": [
100-
{
101-
"protocol": "TCP",
102-
"port": 443
103-
},
104-
{
105-
"protocol": "TCP",
106-
"port": 80
107-
}
108-
],
109-
"environmentVariables": [],
110-
"resources": {
111-
"requests": {
112-
"memoryInGB": 1,
113-
"cpu": 1
114-
}
115-
},
116-
"volumeMounts": [
117-
{
118-
"name": "caddy-data",
119-
"mountPath": "/data"
120-
}
121-
]
122-
}
123-
}
124-
],
125-
"volumes": [
126-
{
127-
"name": "caddy-data",
128-
"azureFile": {
129-
"shareName": "caddy",
130-
"storageAccountName": "[parameters('storageAccountName')]",
131-
"storageAccountKey": "[parameters('storageAccountKey')]"
132-
}
13377
}
13478
],
13579
"imageRegistryCredentials": [
@@ -142,17 +86,9 @@
14286
"restartPolicy": "Always",
14387
"ipAddress": {
14488
"ports": [
145-
{
146-
"protocol": "TCP",
147-
"port": 443
148-
},
14989
{
15090
"protocol": "TCP",
15191
"port": 4000
152-
},
153-
{
154-
"protocol": "TCP",
155-
"port": 80
15692
}
15793
],
15894
"type": "Public",

0 commit comments

Comments
 (0)