DamianFlynn / azure-verified-modules-hub

Azure Verified Modules Hub
0 stars 0 forks source link

[Platform] Publish Module Index #63

Open DamianFlynn opened 2 months ago

DamianFlynn commented 2 months ago

This workflow is HARDCODED to reference the repository, and storage blob which we will store the index to.

First issue is the Container Registry, this should be dynamic, or addressed as part of the customisation for the systems implemention

          $functionInput = @{
            storageAccountName                           = 'biceplivedatasaprod'
            storageAccountContainer                      = 'bicep-cdn-live-data-container'
            storageBlobName                              = 'module-index'
            moduleIndexJsonFilePath                      = 'moduleIndex.json'
            prefixForLastModuleIndexJsonFile             = 'last-'
            prefixForCurrentGeneratedModuleIndexJsonFile = 'generated-'
            ErrorAction                                  = 'Continue'
            BicepRegistryUrl                             = 'pwe1iacregistry.azurecr.io/v2/public/bicep'
            repoName                                     = 'DamianFlynn/azure-verified-modules-hub'
          }

This needs to be updated, and addressed as part of the system installation guide to include this storage account, in addition to the Container Registry and TemplateSpec.

         $storageAccountInfo = @{
              storageAccountName      = 'biceplivedatasaprod'
              storageAccountContainer = 'bicep-cdn-live-data-container'
              storageBlobName         = 'module-index'
              storageBlobContentType  = @{'ContentType' = 'application/json'}
          }