mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
make docker stubs from CI
This commit is contained in:
parent
0f7963f79c
commit
2106d5b792
12
appveyor.yml
12
appveyor.yml
@ -20,11 +20,14 @@ init:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: |
|
- ps: |
|
||||||
|
$env:STUB_CORE_VER = "dev"
|
||||||
|
$env:STUB_WEB_VER = "dev"
|
||||||
$env:PROD_DEPLOY = "false"
|
$env:PROD_DEPLOY = "false"
|
||||||
$env:TAG_NAME = ""
|
$env:TAG_NAME = ""
|
||||||
if($env:APPVEYOR_REPO_TAG -eq "true" -and $env:APPVEYOR_RE_BUILD -eq "True") {
|
if($env:APPVEYOR_REPO_TAG -eq "true" -and $env:APPVEYOR_RE_BUILD -eq "True") {
|
||||||
$env:PROD_DEPLOY = "true"
|
$env:PROD_DEPLOY = "true"
|
||||||
$env:TAG_NAME = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
$env:TAG_NAME = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
||||||
|
$env:STUB_CORE_VER = $env:TAG_NAME
|
||||||
echo "This is a production deployment for ${env:TAG_NAME}."
|
echo "This is a production deployment for ${env:TAG_NAME}."
|
||||||
}
|
}
|
||||||
if($isLinux) {
|
if($isLinux) {
|
||||||
@ -82,6 +85,15 @@ build_script:
|
|||||||
$env:swaggerGen = ""
|
$env:swaggerGen = ""
|
||||||
Push-AppveyorArtifact .\swagger.json
|
Push-AppveyorArtifact .\swagger.json
|
||||||
}
|
}
|
||||||
|
sh: |
|
||||||
|
echo "Make docker stubs"
|
||||||
|
mkdir stub
|
||||||
|
docker run -it --rm --name setup -v stub:/bitwarden bitwarden/setup:$STUB_CORE_VER \
|
||||||
|
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.company.com -os lin \
|
||||||
|
-corev $STUB_CORE_VER -webv $STUB_WEB_VER
|
||||||
|
cd stub
|
||||||
|
ls
|
||||||
|
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- sh: docker logout
|
- sh: docker logout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user