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

Custom CI deployment test #5103

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
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
92 changes: 5 additions & 87 deletions .github/workflows/deploy-feature-azure-webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,6 @@ concurrency:
permissions: read-all

jobs:
calling:
name: Build and Deploy Calling App
runs-on: ubuntu-latest
permissions:
# Needed for Azure login
id-token: write
environment: staging
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install rush
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
- name: Install dependencies
run: rush install
- name: Switch flavor for beta release build
run: rush switch-flavor:beta-release
- name: Build Communication-react
run: rush build -t @azure/communication-react
- name: Build Server
run: rush build -o server
- name: Build Calling
run: rush build -o calling
- name: Package Calling App
run: rushx package
working-directory: ./samples/Calling
- name: Log in with Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Calling
uses: azure/webapps-deploy@v2
with:
app-name: acs-ui-dev-web-call-feature-validation
package: ./samples/Calling/dist

chat:
name: Build and Deploy Chat App
runs-on: ubuntu-latest
Expand Down Expand Up @@ -90,50 +48,10 @@ jobs:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Chat
uses: azure/webapps-deploy@v2
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: acs-ui-dev-web-chat-feature-validation
app-name: 'john-test-3245e65as'
slot-name: 'production'
package: ./samples/Chat/dist

callwithchat:
name: Build and Deploy CallWithChat App
runs-on: ubuntu-latest
permissions:
# Needed for Azure login
id-token: write
environment: staging
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install rush
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
- name: Install dependencies
run: rush install
- name: Switch flavor for beta release build
run: rush switch-flavor:beta-release
- name: Build Communication-react
run: rush build -t @azure/communication-react
- name: Build Server
run: rush build -o server
- name: Build CallWithChat
run: rush build -o callwithchat
- name: Package CallWithChat Sample Artifact
run: rushx package
working-directory: ./samples/CallWithChat
- name: Log in with Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy CallWithChat
uses: azure/webapps-deploy@v2
with:
app-name: acs-ui-dev-web-callwithchat-feature-validation
package: ./samples/CallWithChat/dist
Loading