Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
00f0347
Add personal user cohorts API and hook
Codebmk May 27, 2026
6347d46
Merge branch 'staging' into personal-devices-claim
Codebmk May 27, 2026
4d1b052
Filter personal cohorts and update device count
Codebmk May 27, 2026
2002065
Show Device Visibility and support personal cohorts
Codebmk May 27, 2026
8634d6a
Add personal cohort scope & refine loading logic
Codebmk May 27, 2026
2f46697
Refactor claim device modal into steps
Codebmk May 27, 2026
f6a7ea7
Add onboarding checklist to Home page
Codebmk May 28, 2026
cab848e
Add device choice dialog and update checklist
Codebmk May 28, 2026
f7a0a78
Disable claim/import in onboarding checklist
Codebmk May 28, 2026
f6de946
Merge branch 'staging' into personal-devices-claim
Codebmk May 28, 2026
b73f216
Remove collapse and dismiss from onboarding checklist
Codebmk May 28, 2026
5b0eb72
Add guided/fast claim modes & refactor modal
Codebmk May 28, 2026
890afdb
Merge branch 'staging' into personal-devices-claim
Codebmk May 29, 2026
7bc5c8f
Fix formatting in README.md by removing trailing period from font des…
OchiengPaul442 May 29, 2026
a1ffcbd
Enhance recent readings functionality and update related services
OchiengPaul442 May 30, 2026
9c7ba30
Refactor DynamicChart and BottomNavigation components for improved pe…
OchiengPaul442 May 30, 2026
03889df
Enhance UserDataFetcher and ApiClient with JWT handling and loading o…
OchiengPaul442 May 30, 2026
e08d051
Merge branch 'staging' into personal-devices-claim
Codebmk May 31, 2026
5154530
Improve Personal Workspace & Banner
Codebmk May 31, 2026
582e6a6
Add an inline "Administrator" pill tag next to "Vertex" in the logo area
Codebmk May 31, 2026
856d447
Remove "Download for Windows" button from the admin panel sidebar
Codebmk May 31, 2026
8a5b118
Add the active organisation name as a subtitle beneath "Vertex" in th…
Codebmk May 31, 2026
d0e7cca
conditional rendering of admin pill
Codebmk May 31, 2026
e5b86a0
Change label from device management to home
Codebmk May 31, 2026
af3a556
fix font application
Codebmk May 31, 2026
1d0ec32
add cohort assignment under step and add mark as done action button
Codebmk May 31, 2026
117fea2
make data sharing toggle buttons for private cohorts more visible
Codebmk May 31, 2026
a1a62c2
fix slide to network visibility component
Codebmk May 31, 2026
84b9fed
fix spacing
Codebmk May 31, 2026
98a59c0
fix visibility of banner
Codebmk May 31, 2026
63e449d
add assigned orgs to cohorts card under cohort details with unassign …
Codebmk May 31, 2026
0eb7892
remove obsolete organization setup banner
Codebmk May 31, 2026
f13fb84
fix modal close behavior
Codebmk May 31, 2026
76f4e49
make org list scrollable
Codebmk May 31, 2026
d47007f
preserve onboarding completion status
Codebmk May 31, 2026
787059d
enhance success state display
Codebmk May 31, 2026
379c944
Update Organizations & Groups Module to use InfoBanners
BwanikaRobert May 31, 2026
43e66a0
Merge branch 'Update-Network-Management-Module-to-use-InfoBanners' in…
BwanikaRobert May 31, 2026
96e2542
fix(org-picker): replace ReusableToast with banner system for org swi…
BwanikaRobert May 31, 2026
0489cf6
refactor import device modal
Codebmk May 31, 2026
09e21a6
fix cohort listing
Codebmk May 31, 2026
1dd762a
Merge branch 'staging' into personal-devices-claim
Codebmk May 31, 2026
19f972e
fix(picker) handle error handling with delayed banner
BwanikaRobert May 31, 2026
e59c070
add method selection step, refresh devices
Codebmk May 31, 2026
4cdb0e5
Enhance recent readings handling by improving site name retrieval and…
OchiengPaul442 May 31, 2026
4080f25
refactor: enhance device import and cohort creation dialogs with pres…
Codebmk Jun 1, 2026
07cd5f6
Update next platform staging image tag to stage-986e805d-1780315460
github-actions[bot] Jun 1, 2026
41b5143
Update vertex staging image tag to stage-986e805d-1780315460
github-actions[bot] Jun 1, 2026
f0feaa1
Update vertex production image tag
github-actions[bot] Jun 1, 2026
2e7b14d
Update beacon staging image tag to stage-986e805d-1780315460
github-actions[bot] Jun 1, 2026
af68800
Update beacon production image tag
github-actions[bot] Jun 1, 2026
77786bc
readme triggers
Psalmz777 Jun 1, 2026
1042473
Refactor LocationsList and MapPage components to streamline site data…
OchiengPaul442 Jun 1, 2026
edef796
Enhance useMapReadings hook with auto-retry logic and error handling …
OchiengPaul442 Jun 1, 2026
5ad2a8a
Merge branch 'staging' into fix-recents-reading
OchiengPaul442 Jun 1, 2026
8de0393
fix loading issue
Codebmk Jun 2, 2026
6748baf
Rename 'group' to 'cohort' and support imports
Codebmk Jun 2, 2026
d1f560a
Invalidate queries on device/cohort updates
Codebmk Jun 2, 2026
8246297
Trigger onSuccess after cohort assignment
Codebmk Jun 2, 2026
d3d32a6
remove success banner from organisation picker
BwanikaRobert Jun 2, 2026
5f7dedb
edited branch naming
Psalmz777 Jun 2, 2026
e2040a7
update changelog.md
BwanikaRobert Jun 2, 2026
3243ff5
edited preview workflows
Psalmz777 Jun 2, 2026
9dd7a6e
edit remove preview
Psalmz777 Jun 2, 2026
60a6107
Merge pull request #3568 from airqo-platform/safecheck-test2
Baalmart Jun 2, 2026
c0ae099
Update docs staging image tag to stage-60a6107f-1780390970
github-actions[bot] Jun 2, 2026
c08e306
Update vertex staging image tag to stage-60a6107f-1780390970
github-actions[bot] Jun 2, 2026
9a55114
Update beacon staging image tag to stage-60a6107f-1780390970
github-actions[bot] Jun 2, 2026
3a1b70d
Merge branch 'staging' into fix-recents-reading
OchiengPaul442 Jun 2, 2026
aa88980
Merge pull request #3561 from airqo-platform/fix-recents-reading
Baalmart Jun 2, 2026
946708e
Update next platform staging image tag to stage-aa88980d-1780394283
github-actions[bot] Jun 2, 2026
7a70e44
Merge pull request #3563 from BwanikaRobert/Update-Organizations-Grou…
Baalmart Jun 2, 2026
93faaf9
fix bulk import bug
Codebmk Jun 3, 2026
ed92614
handle all three user contexts
Codebmk Jun 3, 2026
f7e9c89
display bulk import results
Codebmk Jun 3, 2026
e2fee14
edited preview files
Psalmz777 Jun 3, 2026
85ed3ac
Merge pull request #3571 from airqo-platform/preview-fixes
Baalmart Jun 3, 2026
2629f17
Add typing, fixes & read-only onboarding UI
Codebmk Jun 3, 2026
9c9b312
Handle cohort verification errors
Codebmk Jun 3, 2026
0f87158
sort the organizations alphabetically by their title
Codebmk Jun 3, 2026
c8f03fe
Update ConfirmationStep.tsx
Codebmk Jun 3, 2026
cd48f64
place import cohort as first option
Codebmk Jun 3, 2026
771c6df
Update claim-device-modal.tsx
Codebmk Jun 3, 2026
5d1ed1e
Update changelog.md
Codebmk Jun 3, 2026
400a901
Merge branch 'staging' into personal-devices-claim
Codebmk Jun 3, 2026
9ea2963
Update changelog.md
Codebmk Jun 3, 2026
b5e7fe3
Don’t turn fetch failures into the empty state
Codebmk Jun 3, 2026
a6c6957
Remove set-visibility from autoSteps
Codebmk Jun 3, 2026
f67b63c
Use the session fallback for claim mutations too.
Codebmk Jun 3, 2026
1f19d80
Comment out QR-scan method in MethodSelectStep
Codebmk Jun 3, 2026
7884739
Dynamic imports; improve QR scanner error UI
Codebmk Jun 3, 2026
9b6de8b
Use dynamic imports for import steps
Codebmk Jun 3, 2026
6ccabc3
Validate QR code fields in claim util
Codebmk Jun 3, 2026
b1ead7b
Gate the unassign control behind an explicit update permission.
Codebmk Jun 3, 2026
8b849df
Don’t hide the required network field unless a value is guaranteed.
Codebmk Jun 3, 2026
ec8bc09
Reset bulkResults when the dialog state is cleared.
Codebmk Jun 3, 2026
60ca82b
Pass the created device’s _id into onSuccess, not its name.
Codebmk Jun 3, 2026
b06cc5b
Align ImportDeviceFormData with EXPECTED_FIELDS to prevent field-mapp…
Codebmk Jun 3, 2026
78a5c48
Update network-visibility-card.tsx
Codebmk Jun 3, 2026
3cba223
Add StepLoader to dynamic imports
Codebmk Jun 3, 2026
45f6236
Set analytics base URL by environment
Codebmk Jun 3, 2026
34ef4a8
Remove Claim page and rename CTAs to 'Add AirQo Device'
Codebmk Jun 3, 2026
177c68d
Open Claim flow as modal instead of navigating
Codebmk Jun 3, 2026
a7086fb
Update changelog.md
Codebmk Jun 3, 2026
ff9c6d5
Increase idle session timeout to 6 hours
Codebmk Jun 3, 2026
4dca181
Persist cookie consent across sessions
Codebmk Jun 3, 2026
2b5d5e8
Refactor cohort orgs UI and add cohort groups API
Codebmk Jun 3, 2026
6ffd763
Add smart Save flow; update device changelog
Codebmk Jun 3, 2026
d542b31
fix lint errors
Codebmk Jun 3, 2026
8a5021d
Gate both claim CTAs with PERMISSIONS.DEVICE.CLAIM.
Codebmk Jun 3, 2026
f12f460
Refresh the deployable device list after an in-place claim.
Codebmk Jun 3, 2026
0c36256
Use a production-safe fallback when NEXT_PUBLIC_ENV is missing.
Codebmk Jun 3, 2026
76bb974
Update cohort-organizations-card.tsx
Codebmk Jun 3, 2026
9a60dd2
Update cohort-organizations-card.tsx
Codebmk Jun 3, 2026
c39061f
Update cohort-organizations-card.tsx
Codebmk Jun 3, 2026
9919300
Update device onboarding copy
Codebmk Jun 3, 2026
47a7f73
Add tooltip to unassign switch and rename columns
Codebmk Jun 3, 2026
e5c1693
Replace 'Claim' with 'Add AirQo device'
Codebmk Jun 3, 2026
ce0f32d
Merge pull request #3572 from airqo-platform/personal-devices-claim
Baalmart Jun 3, 2026
740c697
Update vertex staging image tag to stage-ce0f32db-1780506966
github-actions[bot] Jun 3, 2026
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
188 changes: 123 additions & 65 deletions .github/workflows/deploy-frontend-azurepreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,33 @@ env:
KEYVAULT: airqo-kv-staging

jobs:

#########################################
# FORMAT BRANCH NAME
#########################################
#########################################
# FORMAT BRANCH NAME
#########################################

branch-name:
runs-on: ubuntu-latest
outputs:
lowercase: ${{ steps.string.outputs.lowercase }}
sanitized: ${{ steps.sanitize.outputs.sanitized }}

steps:
- id: string
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.head_ref || github.ref_name }}

#########################################
# DETECT CHANGED SERVICES
#########################################
- name: sanitize branch name
id: sanitize
env:
RAW: ${{ steps.string.outputs.lowercase }}
run: |
CLEAN=$(printf '%s' "${RAW:0:12}" | sed 's/-*$//')
echo "sanitized=$CLEAN" >> $GITHUB_OUTPUT

#########################################
# DETECT CHANGED SERVICES
#########################################

check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -94,9 +102,9 @@ jobs:
fi
done < files.txt

#########################################
# WEBSITE PREVIEW
#########################################
#########################################
# WEBSITE PREVIEW
#########################################

website:
needs: [check, branch-name]
Expand Down Expand Up @@ -132,8 +140,8 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-website-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-website-preview"
ENV_VARS="SECRET=${{ secrets.WEBSITE_SECRET }} API_URL=${{ secrets.WEBSITE_STAGE_API_URL }} OPENCAGE_API_KEY=${{ secrets.WEBSITE_STAGE_OPENCAGE_API_KEY }} API_TOKEN=${{ secrets.WEBSITE_STAGE_API_TOKEN }} SLACK_WEBHOOK_URL=${{ secrets.WEBSITE_STAGE_SLACK_WEBHOOK_URL }} SLACK_CHANNEL=${{ secrets.WEBSITE_STAGE_SLACK_CHANNEL }} NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=${{ secrets.WEBSITE_STAGE_NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN }} NEXT_PUBLIC_GA_MEASUREMENT_ID=${{ secrets.WEBSITE_STAGE_NEXT_PUBLIC_GA_MEASUREMENT_ID }} GOOGLE_SITE_VERIFICATION=${{ secrets.WEBSITE_STAGE_GOOGLE_SITE_VERIFICATION }} NEXT_PUBLIC_SITE_URL=${{ secrets.WEBSITE_STAGE_NEXT_PUBLIC_SITE_URL }}"
az containerapp up \
--name $APP \
Expand All @@ -149,8 +157,8 @@ jobs:

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-website-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-website-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -174,9 +182,9 @@ jobs:
body: 'New azure website changes available for preview [here](${{ needs.website.outputs.url }})'
})

#########################################
# BEACON PREVIEW
#########################################
#########################################
# BEACON PREVIEW
#########################################

beacon:
name: build-push-deploy-beacon-preview
Expand Down Expand Up @@ -214,8 +222,10 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-beacon-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-beacon-preview"

mapfile -t ENV_VARS < <(jq -r 'to_entries[] | "\(.key)=\(.value|tostring)"' secrets.json)

az containerapp up \
--name $APP \
Expand All @@ -227,12 +237,12 @@ jobs:
--registry-server ${{ env.REGISTRY_URL }} \
--registry-username airqoacr \
--registry-password ${{ secrets.ACR_PASSWORD }} \
--env-vars "$(jq -r 'to_entries | map("\(.key)=\(.value|tostring)") | join(" ")' secrets.json)"
--env-vars "${ENV_VARS[@]}"

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-beacon-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-beacon-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -256,9 +266,9 @@ jobs:
body: 'New azure beacon changes available for preview [here](${{ needs.beacon.outputs.url }})'
})

#########################################
# CALIBRATE APP PREVIEW
#########################################
#########################################
# CALIBRATE APP PREVIEW
#########################################

calibrate_app:
name: build-push-deploy-calibrate-app-preview
Expand Down Expand Up @@ -295,8 +305,10 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-calibrate-app-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-calibrate-app-preview"

mapfile -t ENV_VARS < <(jq -r 'to_entries[] | "\(.key)=\(.value|tostring)"' secrets.json)

az containerapp up \
--name $APP \
Expand All @@ -308,12 +320,12 @@ jobs:
--registry-server ${{ env.REGISTRY_URL }} \
--registry-username airqoacr \
--registry-password ${{ secrets.ACR_PASSWORD }} \
--env-vars "$(jq -r 'to_entries | map("\(.key)=\(.value|tostring)") | join(" ")' secrets.json)"
--env-vars "${ENV_VARS[@]}"

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-calibrate-app-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-calibrate-app-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -337,9 +349,9 @@ jobs:
body: 'New azure calibrate_app changes available for preview [here](${{ needs.calibrate_app.outputs.url }})'
})

#########################################
# ANALYTICS PLATFORM PREVIEW
#########################################
#########################################
# ANALYTICS PLATFORM PREVIEW
#########################################

analytics_platform:
name: build-push-deploy-analytics-platform-preview
Expand All @@ -364,13 +376,27 @@ jobs:

- name: Pull secrets from Key Vault
run: |
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-analytics-p-preview"

DEFAULT_DOMAIN=$(az containerapp env show \
--name ${{ env.PR_PREVIEW_ENV }} \
--resource-group ${{ env.RG }} \
--query properties.defaultDomain -o tsv)

NEXTAUTH_URL="https://$APP.$DEFAULT_DOMAIN"

az keyvault secret show \
--vault-name ${{ env.KEYVAULT }} \
--name sta-env-next-platform \
--query value -o tsv > secrets.json

# Write .env into the build context for Next.js build time
jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' secrets.json > src/platform/.env
jq -r 'to_entries | .[] | select(.key != "NEXTAUTH_URL" and .key != "NEXTAUTH_URL_INTERNAL" and .key != "NEXTAUTH_COOKIE_DOMAIN" and .key != "AUTH_URL" and .key != "AUTH_TRUST_HOST") | "\(.key)=\(.value|tojson)"' secrets.json > src/platform/.env
{
echo "NEXTAUTH_URL=$NEXTAUTH_URL"
echo "NEXTAUTH_URL_INTERNAL=$NEXTAUTH_URL"
echo "AUTH_TRUST_HOST=true"
} >> src/platform/.env

- name: Build image
run: |
Expand All @@ -379,8 +405,22 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-analytics-p-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-analytics-p-preview"

DEFAULT_DOMAIN=$(az containerapp env show \
--name ${{ env.PR_PREVIEW_ENV }} \
--resource-group ${{ env.RG }} \
--query properties.defaultDomain -o tsv)

NEXTAUTH_URL="https://$APP.$DEFAULT_DOMAIN"

mapfile -t ENV_VARS < <(jq -r 'to_entries[] | select(.key != "NEXTAUTH_URL" and .key != "NEXTAUTH_URL_INTERNAL" and .key != "NEXTAUTH_COOKIE_DOMAIN" and .key != "AUTH_URL" and .key != "AUTH_TRUST_HOST") | "\(.key)=\(.value|tostring)"' secrets.json)
ENV_VARS+=("NEXTAUTH_URL=$NEXTAUTH_URL")
ENV_VARS+=("NEXTAUTH_URL_INTERNAL=$NEXTAUTH_URL")
ENV_VARS+=("AUTH_TRUST_HOST=true")

jq -e '((.NEXTAUTH_SECRET // .AUTH_SECRET) | length > 0)' secrets.json >/dev/null

az containerapp up \
--name $APP \
Expand All @@ -392,12 +432,28 @@ jobs:
--registry-server ${{ env.REGISTRY_URL }} \
--registry-username airqoacr \
--registry-password ${{ secrets.ACR_PASSWORD }} \
--env-vars "$(jq -r 'to_entries | map("\(.key)=\(.value|tostring)") | join(" ")' secrets.json)"
--env-vars "${ENV_VARS[@]}"

az containerapp update \
--name $APP \
--resource-group ${{ env.RG }} \
--replace-env-vars "${ENV_VARS[@]}"

AUTH_STATUS=$(curl -sS -o /tmp/nextauth-providers.json -w "%{http_code}" "$NEXTAUTH_URL/api/auth/providers")
if [ "$AUTH_STATUS" != "200" ]; then
echo "NextAuth providers endpoint returned HTTP $AUTH_STATUS"
cat /tmp/nextauth-providers.json || true
az containerapp logs show \
--name $APP \
--resource-group ${{ env.RG }} \
--tail 80 || true
exit 1
fi

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-analytics-p-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-analytics-p-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -421,9 +477,9 @@ jobs:
body: 'New azure analytics_platform changes available for preview [here](${{ needs.analytics_platform.outputs.url }})'
})

#########################################
# VERTEX PREVIEW
#########################################
#########################################
# VERTEX PREVIEW
#########################################

vertex:
name: build-push-deploy-vertex-preview
Expand All @@ -448,8 +504,8 @@ jobs:

- name: Pull secrets from Key Vault
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-vertex-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-vertex-preview"

DEFAULT_DOMAIN=$(az containerapp env show \
--name ${{ env.PR_PREVIEW_ENV }} \
Expand Down Expand Up @@ -477,8 +533,15 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-vertex-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-vertex-preview"

DEFAULT_DOMAIN=$(az containerapp env show \
--name ${{ env.PR_PREVIEW_ENV }} \
--resource-group ${{ env.RG }} \
--query properties.defaultDomain -o tsv)

NEXTAUTH_URL="https://$APP.$DEFAULT_DOMAIN"

mapfile -t ENV_VARS < <(jq -r 'to_entries[] | select(.key != "NEXTAUTH_URL" and .key != "NEXTAUTH_URL_INTERNAL" and .key != "NEXTAUTH_COOKIE_DOMAIN") | "\(.key)=\(.value|tostring)"' secrets.json)
ENV_VARS+=("NEXTAUTH_URL=$NEXTAUTH_URL")
Expand Down Expand Up @@ -510,13 +573,6 @@ jobs:
--query "properties.template.containers[0].env[].name" \
-o tsv | sort

DEFAULT_DOMAIN=$(az containerapp env show \
--name ${{ env.PR_PREVIEW_ENV }} \
--resource-group ${{ env.RG }} \
--query properties.defaultDomain -o tsv)

NEXTAUTH_URL="https://$APP.$DEFAULT_DOMAIN"

AUTH_STATUS=$(curl -sS -o /tmp/nextauth-providers.json -w "%{http_code}" "$NEXTAUTH_URL/api/auth/providers")
if [ "$AUTH_STATUS" != "200" ]; then
echo "NextAuth providers endpoint returned HTTP $AUTH_STATUS"
Expand All @@ -530,8 +586,8 @@ jobs:

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-vertex-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-vertex-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -555,9 +611,9 @@ jobs:
body: 'New azure vertex changes available for preview [here](${{ needs.vertex.outputs.url }})'
})

#########################################
# DOCS PREVIEW
#########################################
#########################################
# DOCS PREVIEW
#########################################

docs:
name: build-push-deploy-docs-preview
Expand Down Expand Up @@ -594,8 +650,10 @@ jobs:

- name: Deploy Container App
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-docs-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-docs-preview"

mapfile -t ENV_VARS < <(jq -r 'to_entries[] | "\(.key)=\(.value|tostring)"' secrets.json)

az containerapp up \
--name $APP \
Expand All @@ -607,12 +665,12 @@ jobs:
--registry-server ${{ env.REGISTRY_URL }} \
--registry-username airqoacr \
--registry-password ${{ secrets.ACR_PASSWORD }} \
--env-vars "$(jq -r 'to_entries | map("\(.key)=\(.value|tostring)") | join(" ")' secrets.json)"
--env-vars "${ENV_VARS[@]}"

- id: preview
run: |
BRANCH="${{ needs.branch-name.outputs.lowercase }}"
APP="${BRANCH:0:12}-docs-preview"
BRANCH="${{ needs.branch-name.outputs.sanitized }}"
APP="${BRANCH}-docs-preview"

URL=$(az containerapp show \
--name $APP \
Expand All @@ -634,4 +692,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: 'New azure docs changes available for preview [here](${{ needs.docs.outputs.url }})'
})
})
Loading
Loading