-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DI-1384] - Update package version for 2.3.3 release (#133)
- Loading branch information
1 parent
9f8c5a1
commit 57ec74e
Showing
4 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
#tag 8.0-alpine | ||
FROM mcr.microsoft.com/dotnet/aspnet@sha256:646b1c5ff36375f35f6149b0ce19ca095f97b4b882b90652801e9fbe82bcfa8a | ||
LABEL maintainer="Ed-Fi Alliance, LLC and Contributors <[email protected]>" | ||
ENV VERSION="2.3.2" | ||
ENV VERSION="2.3.3" | ||
ENV TZ=${TIME_ZONE} | ||
|
||
# Alpine image does not contain Globalization Cultures library so we need to install ICU library to get fopr LINQ expression to work | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Licensed to the Ed-Fi Alliance under one or more agreements. | ||
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
# See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
$ErrorActionPreference = "Stop" | ||
<# | ||
.DESCRIPTION | ||
Promotes a package in Azure Artifacts to a view, e.g. pre-release or release. | ||
#> | ||
function Invoke-Promote { | ||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '', Justification = 'False positive')] | ||
param( | ||
# NuGet Packages API URL | ||
[Parameter(Mandatory = $true)] | ||
[String] | ||
$PackagesURL, | ||
|
||
# Azure Artifacts user name | ||
[Parameter(Mandatory = $true)] | ||
[String] | ||
$Username, | ||
|
||
# Azure Artifacts password | ||
[Parameter(Mandatory = $true)] | ||
[SecureString] | ||
$Password, | ||
|
||
# View to promote into. This will be a Guid | ||
[Parameter(Mandatory = $true)] | ||
[String] | ||
$ViewId, | ||
|
||
# Git ref (short) for the release tag ex: v1.3.5 | ||
[Parameter(Mandatory = $true)] | ||
$ReleaseRef | ||
) | ||
|
||
$package = "DataImport.Web" | ||
$version = $ReleaseRef.substring(1) | ||
|
||
$body = ' | ||
{ | ||
"data": { | ||
"viewId": "' + $ViewId + '" | ||
}, | ||
"operation": 0, | ||
"packages": [ | ||
{ | ||
"id": "' + $package + '", | ||
"version": "' + $version + '" | ||
} | ||
] | ||
}' | ||
|
||
$parameters = @{ | ||
Method = "POST" | ||
ContentType = "application/json" | ||
Credential = New-Object -TypeName PSCredential -ArgumentList $Username, $Password | ||
URI = $PackagesURL | ||
Body = $body | ||
} | ||
|
||
$parameters | Out-Host | ||
$parameters.URI | Out-Host | ||
$parameters.Body | Out-Host | ||
|
||
$response = Invoke-WebRequest @parameters -UseBasicParsing | ||
$response | ConvertTo-Json -Depth 10 | Out-Host | ||
} | ||
|
||
Export-ModuleMember -Function Invoke-Promote |