1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-25 17:27:45 +01:00

docker-stub artifact

This commit is contained in:
Kyle Spearrin 2019-03-15 10:00:33 -04:00
parent 472c11ceff
commit b57e05e8bf

View File

@ -20,14 +20,11 @@ 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) {
@ -87,12 +84,15 @@ build_script:
} }
- sh: | - sh: |
echo "Make docker stubs" echo "Make docker stubs"
mkdir stub STUB_OUTPUT=$(pwd)/docker-stub
docker run -it --rm --name setup -v stub:/bitwarden bitwarden/setup:$STUB_CORE_VER \ docker run -it --rm --name setup -v $STUB_OUTPUT:/bitwarden bitwarden/setup:dev \
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.company.com -os lin \ dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.company.com -os lin
-corev $STUB_CORE_VER -webv $STUB_WEB_VER rm -rf $STUB_OUTPUT/ca-certificates
cd stub rm -rf $STUB_OUTPUT/identity
ls rm -rf $STUB_OUTPUT/letsencrypt
rm -rf $STUB_OUTPUT/ssl
rm $STUB_OUTPUT/env/uid.env
- ps: Push-AppveyorArtifact .\docker-stub
after_build: after_build: