Update build.ps1 to reflect move to GHCR

This commit is contained in:
Joseph Gigantino 2025-03-29 13:04:34 -04:00 committed by GitHub
parent 0c0a5b1f12
commit 57b712f75e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,13 +45,13 @@ foreach ($instance in $oldinstances) {
# update bitwarden itself
if ($args[0] -eq 'y')
{
docker pull bitwarden/self-host:beta
docker pull ghcr.io/bitwarden/self-host:beta
}
else
{
$confirmation = Read-Host "Update (or get) bitwarden source container"
if ($confirmation -eq 'y') {
docker pull bitwarden/self-host:beta
docker pull ghcr.io/bitwarden/self-host:beta
}
}
@ -61,7 +61,7 @@ docker rm bitwarden-patch
docker image rm bitwarden-patch
# start a new bitwarden instance so we can patch it
$patchinstance = docker run -d --name bitwarden-patch bitwarden/self-host:beta
$patchinstance = docker run -d --name bitwarden-patch ghcr.io/bitwarden/self-host:beta
# create our temporary directory
New-item -ItemType Directory -Path $tempdirectory
@ -101,4 +101,4 @@ docker build -t bitbetter/licensegen "$pwd\src\licenseGen"
# clean the licenseGen source directory
Remove-Item "$pwd\src\licenseGen\Core.dll" -Force
Remove-Item "$pwd\src\licenseGen\cert.pfx" -Force
Remove-Item "$pwd\src\licenseGen\cert.pfx" -Force