Skip to content

Commit c4d9ef2

Browse files
authored
πŸ’š Fixing AdminUI staging and production deployment (#1196)
* Update admin-deploy.yml Removed experimental flag "--verbose" * πŸ’š Change Azure Blob Storage Sync to be PS script instead
1 parent de82a9d commit c4d9ef2

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

β€Ž.github/workflows/admin-deploy.ymlβ€Ž

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
frontDoorProfileName:
1111
type: string
1212
frontDoorEndpointName:
13-
type: string
13+
type: string
1414
frontDoorDomain:
1515
type: string
1616
secrets:
@@ -88,27 +88,16 @@ jobs:
8888
--expiry $expiry --https-only --permissions dlrw -o tsv
8989
Write-Output "::set-output name=sastoken::$($token)"
9090
91-
- name: Upload UI
92-
uses: azure/CLI@v2
93-
with:
94-
azcliversion: 2.67.0
95-
inlineScript: |
96-
tdnf install -y azcopy; # this is necessary to make sync command work
97-
az storage blob sync \
98-
--container '$web' \
99-
--source "ui" \
100-
--account-name ${{ steps.bicep.outputs.storageAccountName }} \
101-
--sas-token ${{ steps.storage.outputs.sastoken }} \
102-
--verbose \
103-
--delete-destination true
104-
105-
# uses: bacongobbler/azure-blob-storage-upload@main
106-
# with:
107-
# source_dir: "ui"
108-
# container_name: "$web"
109-
# account_name: ${{ steps.bicep.outputs.storageAccountName }}
110-
# sas_token: ${{ steps.storage.outputs.sastoken }}
111-
# sync: "true"
91+
# Run the sync command using the SAS token.
92+
- name: Sync UI folder to Azure Blob Storage ($web)
93+
shell: pwsh
94+
run: |
95+
az storage blob sync `
96+
--container '$web' `
97+
--source "ui" `
98+
--account-name ${{ steps.bicep.outputs.storageAccountName }} `
99+
--sas-token "${{ steps.storage.outputs.sastoken }}" `
100+
--delete-destination true
112101
113102
## - name: Purge Front Door cache
114103
## id: purge-front-door

0 commit comments

Comments
Β (0)