forked from CMU-313/cmu-313-f24-nodebb-f24-NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
0 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +0,0 @@ | ||
# 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 - nodebb-f24 | ||
|
||
on: | ||
push: | ||
branches: | ||
- f24 | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint-and-test: | ||
uses: ./.github/workflows/test.yaml | ||
|
||
build-and-deploy: | ||
if: github.repository == 'cmu-313/nodebb-f24-team-wooshiland' | ||
needs: lint-and-test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.17.0" | ||
|
||
- name: Set up NodeBB | ||
run: | | ||
./nodebb setup '{"url":"https://nodebb-f24.azurewebsites.net:443", | ||
"admin:username": "admin", | ||
"admin:password": "${{ secrets.ADMIN_PASSWORD }}", | ||
"admin:password:confirm": "${{ secrets.ADMIN_PASSWORD }}", | ||
"admin:email": "[email protected]", | ||
"database": "redis", | ||
"redis:host": "${{ secrets.REDIS_HOST }}", | ||
"redis:port": "6379", | ||
"redis:password": "${{ secrets.REDIS_PASSWORD }}" }' | ||
- name: "Deploy to Azure Web App" | ||
id: deploy-to-webapp | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: "team-wooshiland-db" | ||
slot-name: "Production" | ||
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F1A0715B06314A2D8B3FB65C53895447 }} | ||
package: . | ||