Closed urosch closed 1 year ago
upload() { # $1 file
echo "uploading $1";
echo "skipping upload of $1"
# aws s3 --region eu-west-1 cp $buildRootPath/$1 s3://orthanc.osimis.io/docker-builds/$baseImage/$commitId-$1 --cache-control=max-age=1
}
Error building with: ./local-build.sh build version=stable platform=linux/arm64 image=normal
it tries to upload after build for some reason, even though the default argument is enableupload=0. I will comment out this from the build-or-download.sh to try to bypass it.
5 28.72 uploading libOrthancAuthorization.so
5 28.72 + upload libOrthancAuthorization.so
5 28.72 + echo 'uploading libOrthancAuthorization.so'
5 28.72 + aws s3 --region eu-west-1 cp /build/libOrthancAuthorization.so s3://orthanc.osimis.io/docker-builds/linux/arm64/bullseye-20230522-slim-stable/0.5.3-libOrthancAuthorization.so --cache-control=max-age=1
5 33.98 upload failed: ./libOrthancAuthorization.so to s3://orthanc.osimis.io/docker-builds/linux/arm64/bullseye-20230522-slim-stable/0.5.3-libOrthancAuthorization.so Unable to locate credentials
5 ERROR: executor failed running [/bin/sh -c /scripts/build-or-download.sh version=$STABLE_OR_UNSTABLE target=orthanc-authorization commitId=$ORTHANC_AUTH_COMMIT_ID baseImage=$PLATFORM/$BASE_IMAGE_TAG preferDownloads=$PREFER_DOWNLOADS enableUploads=$ENABLE_UPLOAD]: exit code: 1