From 25db9bc69ebe3ef6485cb348392b1b9f93182af2 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Mon, 20 Apr 2020 18:16:40 +0530 Subject: [PATCH 1/7] yaml file using Azure login --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d2297a4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Deploy Java app to Azure Web App + +on: + [push] + +# CONFIGURATION +# For help, go to https://github.com/Azure/Actions +# +# 1. Set up the following secrets in your repository: +# AZURE_WEBAPP_PUBLISH_PROFILE +# +# 2. Change these variables for your configuration: +env: + AZURE_WEBAPP_NAME: Hjavawebapp # set this to your application's name + AZURE_WEBAPP_PACKAGE_PATH: ${{ github.workspace }} # set this to the path to your web app project + JAVA_VERSION: '1.8' # set this to the node version to use + +jobs: + build-and-deploy: + name: Build and Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: ${{ env.JAVA_VERSION }} + - name: Build with Maven + run: mvn package --file pom.xml + - name: Azure Login + uses: Azure/login@v1 + with: + # Paste output of `az ad sp create-for-rbac` as value of secret variable: AZURE_CREDENTIALS + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: 'Deploy to Azure WebApp' + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/target/*.jar' + + # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions + # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples From 26b9f64956d1a1484e3ca36969f69c5a14ee8625 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Mon, 20 Apr 2020 18:39:59 +0530 Subject: [PATCH 2/7] Update master1 branch with workflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2297a4..ef61449 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Deploy Java app to Azure Web App +name: Deploy Java app to Azure Web Application on: [push] From 3db2fa1ad81e418097c9091f6d178fc7f9bb7f81 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Mon, 20 Apr 2020 21:06:53 +0530 Subject: [PATCH 3/7] publish profile added --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef61449..3527337 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,6 +37,7 @@ jobs: with: app-name: ${{ env.AZURE_WEBAPP_NAME }} package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/target/*.jar' + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples From 9d1001e3ed4e894c523d44f777027b42f896ef17 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Mon, 20 Apr 2020 21:18:31 +0530 Subject: [PATCH 4/7] remove publish profile --- .github/workflows/workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index c90aeb7..40c9a7c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -14,7 +14,6 @@ env: AZURE_WEBAPP_NAME: JavaSpringPetclinic # set this to your application's name AZURE_WEBAPP_PACKAGE_PATH: ${{ github.workspace }} # set this to the path to your web app project JAVA_VERSION: '1.8' # set this to the node version to use - AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} # set GH repo secret with the publish profile of the web app jobs: build-and-deploy: @@ -32,7 +31,6 @@ jobs: uses: azure/webapps-deploy@v2 with: app-name: ${{ env.AZURE_WEBAPP_NAME }} - publish-profile: ${{ env.AZURE_WEBAPP_PUBLISH_PROFILE }} package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/target/*.jar' # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions From cc7f0616b78167eb8a12fdda90eaaa134fe27190 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Mon, 11 May 2020 20:08:53 +0530 Subject: [PATCH 5/7] wrkflwmaster_change1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8368df4..4466e13 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ --- -page_type: sample +page_type: samplee languages: Java products: GitHub description: "Deploy Spring Petclinic application using GitHub Actions" From a56a99640594ec5f2232888031830b1ef8f5ffb7 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Thu, 14 May 2020 10:32:27 +0530 Subject: [PATCH 6/7] ew --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4466e13..c5c3a49 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ --- -page_type: samplee +page_type: sampleew languages: Java products: GitHub description: "Deploy Spring Petclinic application using GitHub Actions" From 514ed22724a5a02bf60750410f00350c07c288a4 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Sun, 24 May 2020 18:04:51 +0530 Subject: [PATCH 7/7] pr_test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c5c3a49..cb713a9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ --- -page_type: sampleew +page_type: sampleewe languages: Java products: GitHub description: "Deploy Spring Petclinic application using GitHub Actions"