Skip to content

Commit

Permalink
Simpllyfy in make
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith committed Feb 27, 2024
1 parent bce69e9 commit 3b1aa73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand Down Expand Up @@ -38,13 +39,7 @@ jobs:
with:
imageName: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
cacheFrom: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
runCmd: |
make ci &&
make azd-login &&
azd provision --no-prompt &&
azd deploy web --no-prompt
azd deploy function --no-prompt &&
azd deploy adminweb --no-prompt
runCmd: make ci && make deploy
refFilterForPush: refs/heads/main
env: |
AZURE_CLIENT_ID
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ build-frontend: ## 🏗️ Build the Frontend webapp
azd-login: ## 🔑 Login to Azure with azd and a SPN
@echo -e "\e[34m$@\e[0m" || true
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}

deploy: azd-login ## 🚀 Deploy everything to Azure
@echo -e "\e[34m$@\e[0m" || true
@azd provision --no-prompt
@azd deploy web --no-prompt
@azd deploy function --no-prompt
@azd deploy adminweb --no-prompt

0 comments on commit 3b1aa73

Please sign in to comment.