Fix circleci

This commit is contained in:
Michiel Hazelhof 2023-01-04 01:23:30 +01:00
parent 65bda70c34
commit 521be7b825
No known key found for this signature in database
GPG Key ID: EECB9B96355B5EBF
3 changed files with 21 additions and 9 deletions

View File

@ -12,4 +12,4 @@ jobs:
command: ./generateKeys.sh command: ./generateKeys.sh
- run: - run:
name: Build script name: Build script
command: ./build.sh command: ./build.sh y

View File

@ -43,9 +43,16 @@ foreach ($instance in $oldinstances) {
} }
# update bitwarden itself # update bitwarden itself
$confirmation = Read-Host "Update (or get) bitwarden source container" if ($args[0] -eq 'y')
if ($confirmation -eq 'y') { {
docker pull bitwarden/self-host:beta docker pull bitwarden/self-host:beta
}
else
{
$confirmation = Read-Host "Update (or get) bitwarden source container"
if ($confirmation -eq 'y') {
docker pull bitwarden/self-host:beta
}
} }
# stop and remove previous existing patch(ed) container # stop and remove previous existing patch(ed) container

View File

@ -46,13 +46,18 @@ for INSTANCE in ${OLDINSTANCES[@]}; do
done done
# update bitwarden itself # update bitwarden itself
read -p "Update (or get) bitwarden source container: " -n 1 -r if [ "$1" = "y" ]; then
echo docker pull bitwarden/self-host:beta
if [[ $REPLY =~ ^[Yy]$ ]] else
then read -p "Update (or get) bitwarden source container: " -n 1 -r
docker pull bitwarden/self-host:beta echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker pull bitwarden/self-host:beta
fi
fi fi
# stop and remove previous existing patch(ed) container # stop and remove previous existing patch(ed) container
docker stop bitwarden-patch docker stop bitwarden-patch
docker rm bitwarden-patch docker rm bitwarden-patch