Skip to content

Commit 3fabed9

Browse files
committed
new JBoss+MySQL tutorial
1 parent eb9ca00 commit 3fabed9

28 files changed

+809
-16
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,12 @@
596596
"branch": "main",
597597
"branch_mapping": {}
598598
},
599+
{
600+
"path_to_root": "msdocs-jboss-mysql-sample-app",
601+
"url": "https://github.com/Azure-Samples/msdocs-jboss-mysql-sample-app",
602+
"branch": "main",
603+
"branch_mapping": {}
604+
},
599605
{
600606
"path_to_root": "playwright-testing-service",
601607
"url": "https://github.com/microsoft/playwright-testing-service",

articles/app-service/deploy-github-actions.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,13 @@ The following examples show the part of the workflow that builds the web app, in
234234

235235
## Frequently Asked Questions
236236

237-
- [How do I deploy a WAR file through Maven plugin and OpenID Connect](#how-do-i-deploy-a-war-file-through-maven-plugin-and-openid-connect)
238-
- [How do I deploy a WAR file through Az CLI and OpenID Connect](#how-do-i-deploy-a-war-file-through-az-cli-and-openid-connect)
239-
- [How do I deploy to a Container](#how-do-i-deploy-to-a-container)
240-
- [How do I update the Tomcat configuration after deployment](#how-do-i-update-the-tomcat-configuration-after-deployment)
237+
- [How do I deploy a WAR file through Maven plugin?](#how-do-i-deploy-a-war-file-through-maven-plugin)
238+
- [How do I deploy a WAR file through Az CLI?](#how-do-i-deploy-a-war-file-through-az-cli)
239+
- [How do I deploy a startup file?](#how-do-i-deploy-a-startup-file)
240+
- [How do I deploy to a Container?](#how-do-i-deploy-to-a-container)
241+
- [How do I update the Tomcat configuration after deployment?](#how-do-i-update-the-tomcat-configuration-after-deployment)
241242

242-
### How do I deploy a WAR file through Maven plugin and OpenID Connect
243+
### How do I deploy a WAR file through Maven plugin?
243244

244245
In case you configured your Java Tomcat project with the [Maven plugin](https://github.com/microsoft/azure-maven-plugins), you can also deploy to Azure App Service through this plugin. If you use the [Azure CLI GitHub action](https://github.com/Azure/cli) it will make use of your Azure login credentials.
245246

@@ -254,26 +255,38 @@ In case you configured your Java Tomcat project with the [Maven plugin](https://
254255
More information on the Maven plugin and how to use and configure it can be found in the [Maven plugin wiki for Azure App Service](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Web-App).
255256

256257

257-
### How do I deploy a WAR file through Az CLI and OpenID Connect
258+
### How do I deploy a WAR file through Az CLI?
258259

259-
If you use prefer the Azure CLI to deploy to App Service, you can use the GitHub Action for CLI.
260+
If you use prefer the Azure CLI to deploy to App Service, you can use the GitHub Action for Azure CLI.
260261

261262
```yaml
262-
- name: Azure CLI script
263-
uses: azure/cli@v2
264-
with:
265-
inlineScript: |
266-
az webapp deploy --src-path '${{ github.workspace }}/target/yourpackage.war' --name ${{ env.AZURE_WEBAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP }} --async true --type war
263+
- name: Azure CLI script
264+
uses: azure/cli@v2
265+
with:
266+
inlineScript: |
267+
az webapp deploy --src-path '${{ github.workspace }}/target/yourpackage.war' --name ${{ env.AZURE_WEBAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP }} --async true --type war
267268
```
268269

269270
More information on the GitHub Action for CLI and how to use and configure it can be found in the [Azure CLI GitHub action](https://github.com/Azure/cli).
270271
More information on the az webapp deploy command, how to use and the parameter details can be found in the [az webapp deploy documentation](/cli/azure/webapp?view=azure-cli-latest#az-webapp-deploy).
271272

272-
### How do I deploy to a Container
273+
### How do I deploy a startup file?
274+
275+
Use the GitHub Action for CLI. For example:
276+
277+
```yaml
278+
- name: Deploy startup script
279+
uses: azure/cli@v2
280+
with:
281+
inlineScript: |
282+
az webapp deploy --src-path ${{ github.workspace }}/src/main/azure/createPasswordlessDataSource.sh --name ${{ env.AZURE_WEBAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP }} --type startup --track-status false
283+
```
284+
285+
### How do I deploy to a Container?
273286

274287
With the Azure Web Deploy action, you can automate your workflow to deploy custom containers to App Service using GitHub Actions. Detailed information on the steps to deploy using GitHub Actions, can be found in the [Deploy to a Container](/azure/app-service/deploy-container-github-action).
275288

276-
### How do I update the Tomcat configuration after deployment
289+
### How do I update the Tomcat configuration after deployment?
277290

278291
In case you would like to update any of your web apps settings after deployment, you can use the [App Service Settings](https://github.com/Azure/appservice-settings) action.
279292

104 KB
Loading
41.9 KB
Loading
39.5 KB
Loading
167 KB
Loading
79.8 KB
Loading
170 KB
Loading
99.2 KB
Loading
60.2 KB
Loading

0 commit comments

Comments
 (0)