Closed Grommish closed 2 years ago
Reusing the code in bitwarden.sh
provides the correct coreVersion
, and produces the followng
version: '3'
services:
api:
image: bitbetter/api:1.47.1
identity:
image: bitbetter/identity:1.47.1
VERSION_ENDPOINT="https://go.btwrdn.co/bw-sh-versions"
# Please do not create pull requests modifying the version numbers.
function getVersion() {
echo $(curl -sL $VERSION_ENDPOINT | grep '^ *"'${1}'":' | awk -F\: '{ print $2 }' | sed -e 's/,$//' -e 's/^"//' -e 's/"$//')
}
BW_VERSION=$(getVersion coreVersion)
But I still am getting errors
ERROR: for identity pull access denied for bitbetter/identity, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
ERROR: for api pull access denied for bitbetter/api, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
ERROR: pull access denied for bitbetter/api, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
BW_VERSION=$(curl -sL https://go.btwrdn.co/bw-sh-versions | grep '^ *"'coreVersion'":' | awk -F\: '{ print $2 }' | sed -e 's/,$//' -e 's/^"//' -e 's/"$//')
(Edit) Requires changes to: https://github.com/jakeswenson/BitBetter/blob/master/build.sh https://github.com/jakeswenson/BitBetter/blob/master/update-bitwarden.sh
Similar to https://github.com/jakeswenson/BitBetter/pull/129
BW_VERSION="$(curl --silent https://raw.githubusercontent.com/bitwarden/self-host/master/bitwarden.sh | grep 'COREVERSION="' | sed 's/^[^"]*"//; s/".*//')"
returns an empty string.The
https://raw.githubusercontent.com/bitwarden/self-host/master/bitwarden.sh
script,BW_VERSION
inbitwarden.sh
callscurl -sL https://go.btwrdn.co/bw-sh-versions | grep '^ *"'${1}'":' | awk -F\: '{ print $2 }' | sed -e 's/,$//' -e 's/^"//' -e 's/"$//'
which returns empty, asbitwarden.sh
now usesCOREVERSION=$(getVersion coreVersion)
https://github.com/bitwarden/self-host/blob/master/bitwarden.sh#L49
https://go.btwrdn.co/bw-sh-versions redirects to https://raw.githubusercontent.com/bitwarden/self-host/master/version.json
which currently returns:
returns an empty string, which means no version number is populated and causes the
ScannerError
asbitwarden/bwdata/docker/docker-compose.override.yml
shows