Skip to content

Commit

Permalink
Merge pull request #37 from sitecorelabs/main
Browse files Browse the repository at this point in the history
Sync from Staging
  • Loading branch information
OlegJytnik authored Aug 1, 2023
2 parents 91e1dac + cd5b8f2 commit f3dceb0
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 472 deletions.
4 changes: 2 additions & 2 deletions init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Write-Host "Preparing your Sitecore Containers environment!" -ForegroundColor Gr

# Check for Sitecore Gallery
Import-Module PowerShellGet
$SitecoreGallery = Get-PSRepository | Where-Object { $_.SourceLocation -eq "https://sitecore.myget.org/F/sc-powershell/api/v2" }
$SitecoreGallery = Get-PSRepository | Where-Object { $_.SourceLocation -eq "https://nuget.sitecore.com/resources/v2" }
if (-not $SitecoreGallery) {
Write-Host "Adding Sitecore PowerShell Gallery..." -ForegroundColor Green
Unregister-PSRepository -Name SitecoreGallery -ErrorAction SilentlyContinue
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2 -InstallationPolicy Trusted
Register-PSRepository -Name SitecoreGallery -SourceLocation https://nuget.sitecore.com/resources/v2 -InstallationPolicy Trusted
$SitecoreGallery = Get-PSRepository -Name SitecoreGallery
}

Expand Down
26 changes: 13 additions & 13 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="Nuget" value="https://api.nuget.org/v3/index.json" />
<add key="Sitecore" value="https://sitecore.myget.org/F/sc-packages/api/v3/index.json" />
<add key="SitecoreGallery" value="https://sitecore.myget.org/F/sc-powershell/api/v2" />
</packageSources>

<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="Nuget" value="https://api.nuget.org/v3/index.json" />
<add key="Sitecore" value="https://nuget.sitecore.com/resources/v3/index.json" />
<add key="SitecoreGallery" value="https://nuget.sitecore.com/resources/v2/" />
</packageSources>

<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
Loading

0 comments on commit f3dceb0

Please sign in to comment.