Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newell - Resolve merge conflict for Azure integration files #1182

Merged
merged 28 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c5e7865
Revert "Revert "Revert "Revert "Backend Release to Main [1.92]""""
one-community Aug 15, 2024
332caed
Merge pull request #1069 from OneCommunityGlobal/revert-1068-revert-1…
one-community Aug 15, 2024
f966f8a
Revert "Revert "Revert "Revert "Revert "Backend Release to Main [1.92…
one-community Aug 15, 2024
c5c16d9
Merge pull request #1070 from OneCommunityGlobal/revert-1069-revert-1…
one-community Aug 15, 2024
74f1ae8
Merge pull request #1073 from OneCommunityGlobal/development
one-community Aug 15, 2024
c6f2eeb
Merge pull request #1074 from OneCommunityGlobal/development
one-community Aug 17, 2024
f1a7654
Merge pull request #1079 from OneCommunityGlobal/development
one-community Aug 20, 2024
d8352bb
Merge pull request #1086 from OneCommunityGlobal/development
one-community Aug 27, 2024
d15e4c4
Merge pull request #1090 from OneCommunityGlobal/development
one-community Sep 2, 2024
9d42d12
Merge pull request #1099 from OneCommunityGlobal/development
one-community Sep 12, 2024
4320629
Merge pull request #1109 from OneCommunityGlobal/development
one-community Sep 18, 2024
1afa0bd
Merge pull request #1121 from OneCommunityGlobal/development
one-community Oct 1, 2024
d76c0b3
Merge pull request #1134 from OneCommunityGlobal/development
one-community Oct 16, 2024
fda8fc9
Merge pull request #1137 from OneCommunityGlobal/development
one-community Oct 25, 2024
6d3af9a
Merge pull request #1147 from OneCommunityGlobal/development
one-community Nov 13, 2024
9088646
Add or update the Azure App Service build and deployment workflow config
one-community Nov 15, 2024
8768a6f
Explicitly disable tests during Azure CI
one-community Nov 15, 2024
ec76e9b
Merge pull request #1163 from OneCommunityGlobal/development
one-community Dec 4, 2024
f094262
Merge pull request #1168 from OneCommunityGlobal/development
one-community Dec 7, 2024
3ac7117
Merge pull request #1174 from OneCommunityGlobal/development
one-community Dec 9, 2024
2a218e4
Add or update the Azure App Service build and deployment workflow config
one-community Dec 11, 2024
d6a9a70
Add or update the Azure App Service build and deployment workflow config
one-community Dec 11, 2024
5d5e527
Add or update the Azure App Service build and deployment workflow config
one-community Dec 11, 2024
a57c2ce
Update main_hgn-rest-beta.yml
one-community Dec 11, 2024
a02180f
Update main_hgn-rest-beta.yml
one-community Dec 11, 2024
555a16e
Update main_hgn-rest.yml
one-community Dec 11, 2024
4341924
Delete unused GitHub integration files for Azure.
Ankuriboh Dec 11, 2024
d1bb755
feat: implement Azure integration via GitHub workflow.
Ankuriboh Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 45 additions & 41 deletions .github/workflows/main_hgn-rest-beta.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

# 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:




# 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

name: Build and deploy Node.js app to Azure Web App - hgn-rest-beta

on:
Expand All @@ -23,35 +9,53 @@ on:
- main
workflow_dispatch:

env:
AZURE_WEBAPP_NAME: hgn-rest-beta # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '14.x' # set this to the node version to use

jobs:
build-and-deploy:
name: Build and Deploy
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: 14

- name: npm install, build, and test
run: |
npm install
npm run build --if-present

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
path: release.zip

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: npm install, build, and test
run: |
# Build and test the project, then
# deploy to Azure Web App.
npm install
npm run build --if-present
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_47800FE52B59410A903D5C41C2F9C10F }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'hgn-rest-beta'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DB4151C3B2C645B88AD84509DA4DD53D }}
61 changes: 61 additions & 0 deletions .github/workflows/main_hgn-rest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js app to Azure Web App - hgn-rest

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: 14

- name: npm install, build, and test
run: |
npm install
npm run build --if-present

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
path: release.zip

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'hgn-rest'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D375D726FC884C3C919531718B394AF9 }}
Loading