Skip to content

Commit

Permalink
remove main code
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Sep 21, 2023
1 parent 72b36ad commit 2ffe1f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/actions/templates/avm-publishModule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ runs:
enable-AzPSSession: true

# TODO: Only for testing. Should be removed in favor of public registry later
- name: "Publish module to private bicep registry"
- name: "Publish module to public bicep registry"
uses: azure/powershell@v1
with:
azPSVersion: "latest"
inlineScript: |
# Grouping task logs
Write-Output '::group::Publish module to private bicep registry'
Write-Output '::group::Publish module to public bicep registry'
if (-not [String]::IsNullOrEmpty('${{ inputs.subscriptionId }}')) {
Write-Verbose ('Setting context to subscription [{0}]' -f '${{ inputs.subscriptionId }}') -Verbose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,3 @@ function Publish-ModuleFromPathToPBR {
# bicep publish @publishInput
# TODO move to its own task to show that as skipped if no file qualifies for new version
}

#$TemplateFilePath = "C:\dev\ip\GitHub\eriqua\bicep-registry-modules\avm\res\key-vault\vault\main.bicep"
# $TemplateFilePath = "C:\dev\ip\GitHub\eriqua\bicep-registry-modules\avm\res\network\private-endpoint\main.bicep"
$TemplateFilePath = "C:\dev\ip\GitHub\eriqua\bicep-registry-modules\avm\res\cognitive-services\account\main.bicep"

$PublicRegistryServer = ConvertTo-SecureString -String "whateva" -AsPlainText -Force
Publish-ModuleFromPathToPBR -TemplateFilePath $TemplateFilePath -PublicRegistryServer $PublicRegistryServer -Verbose

0 comments on commit 2ffe1f9

Please sign in to comment.