Skip to content

Commit

Permalink
Merge pull request #50 from kaylalei/f24
Browse files Browse the repository at this point in the history
retry deployment after remaking redis cache and web app
  • Loading branch information
kaylalei authored Oct 29, 2024
2 parents e4b5891 + dc49df5 commit 9e3f587
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 120 deletions.
112 changes: 54 additions & 58 deletions .github/workflows/azure-deploy-f24.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,54 @@
# 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-kale'
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-kale.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: Install frontend repo as a dependency for the backend repo
run: |
npm install https://github.com/CMU-313/nodebb-frontend-f24-team-kale.git
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'nodebb-kale'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E64DC192227C43C39A12BFA26DDDAFD2 }}
package: .
# 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-kale'
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-kale.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: 'nodebb-kale'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_927CB224401F49279DFD0FD92DFFE366 }}
package: .
62 changes: 0 additions & 62 deletions .github/workflows/f24_nodebb-kale.yml

This file was deleted.

0 comments on commit 9e3f587

Please sign in to comment.