mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
tag setup
This commit is contained in:
@ -10,6 +10,8 @@ param (
|
||||
|
||||
# Setup
|
||||
|
||||
[string]$tag = "1.12.0"
|
||||
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
if($dockerDir -eq "") {
|
||||
$dockerDir="${dir}\..\docker"
|
||||
@ -42,15 +44,15 @@ function Update-Lets-Encrypt {
|
||||
}
|
||||
|
||||
function Update-Database {
|
||||
docker pull bitwarden/setup
|
||||
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||
docker pull bitwarden/setup:$tag
|
||||
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup:$tag `
|
||||
dotnet Setup.dll -update 1 -db 1
|
||||
echo "Database update complete"
|
||||
}
|
||||
|
||||
function Print-Environment {
|
||||
docker pull bitwarden/setup
|
||||
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||
docker pull bitwarden/setup:$tag
|
||||
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup:$tag `
|
||||
dotnet Setup.dll -printenv 1 -env win
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user