mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Fix the docker stub upload task (#1430)
This commit is contained in:
parent
624b5e40c6
commit
051aab805b
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -296,9 +296,16 @@ jobs:
|
|||||||
run: dotnet tool restore
|
run: dotnet tool restore
|
||||||
|
|
||||||
- name: Make Docker stub
|
- name: Make Docker stub
|
||||||
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
|
||||||
run: |
|
run: |
|
||||||
|
if [[ "${{ github.ref }}" == "rc" ]]; then
|
||||||
|
SETUP_IMAGE="bitwarden/setup:rc"
|
||||||
|
else
|
||||||
|
SETUP_IMAGE="bitwarden/setup:dev"
|
||||||
|
fi
|
||||||
|
|
||||||
STUB_OUTPUT=$(pwd)/docker-stub
|
STUB_OUTPUT=$(pwd)/docker-stub
|
||||||
docker run -i --rm --name setup -v $STUB_OUTPUT:/bitwarden bitwarden/setup:dev \
|
docker run -i --rm --name setup -v $STUB_OUTPUT:/bitwarden $SETUP_IMAGE \
|
||||||
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.example.com -os lin
|
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.example.com -os lin
|
||||||
sudo chown -R $(whoami):$(whoami) $STUB_OUTPUT
|
sudo chown -R $(whoami):$(whoami) $STUB_OUTPUT
|
||||||
rm -rf $STUB_OUTPUT/letsencrypt
|
rm -rf $STUB_OUTPUT/letsencrypt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user