Skip to content

Commit

Permalink
[DI-1384] - Update package version for 2.3.3 release (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpardogrowthaccelerationpartners authored Aug 27, 2024
1 parent 9f8c5a1 commit 57ec74e
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
delete-pre-releases:
name: Delete Unnecessary Pre-Releases
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Installer/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ Configure DataImport
$p = @{
ToolsPath = "C:/temp/tools"
DbConnectionInfo = $dbConnectionInfo
PackageVersion = '2.3.2.0'
PackageVersion = '2.3.3.0'
}
UserRecoveryToken is optional. This value can be used to recover/ reset the application user credentials
$p = @{
ToolsPath = "C:/temp/tools"
DbConnectionInfo = $dbConnectionInfo
PackageVersion = '2.3.2.0'
PackageVersion = '2.3.3.0'
UserRecoveryToken = "bEnFYNociET2R1Wua3DHzwfU5u"
}
#>
Expand All @@ -62,7 +62,7 @@ $packageSource = Split-Path $PSScriptRoot -Parent
$p = @{
ToolsPath = "C:/temp/tools"
DbConnectionInfo = $dbConnectionInfo
PackageVersion = '2.3.2.0'
PackageVersion = '2.3.3.0'
PackageSource = $packageSource
}

Expand Down
72 changes: 72 additions & 0 deletions eng/promote-packages.psm1
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

0 comments on commit 57ec74e

Please sign in to comment.