Skip to content

Commit

Permalink
upload VMI without folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Oct 9, 2024
1 parent 1cd471c commit 6bab2d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ else
# All going well, upload the VMI for sharing in AppDB
builder/refresh.sh vo.access.egi.eu "$(cat /var/tmp/egi/.refresh_token)" images
OS_TOKEN="$(yq -r '.clouds.images.auth.token' /etc/openstack/clouds.yaml)"
pushd "$OUTPUT_DIR"
openstack --os-cloud images --os-token "$OS_TOKEN" \
object create egi_endorsed_vas "$OUTPUT_DIR/$QCOW_FILE"
ls -lh "$OUTPUT_DIR/$QCOW_FILE"
object create egi_endorsed_vas "$QCOW_FILE"
ls -lh "$QCOW_FILE"
SHA="$(sha512sum -z "$OUTPUT_DIR/$QCOW_FILE" | cut -f1 -d" ")"
echo "### BUILD-IMAGE: SUCCESS - qcow: $QCOW_FILE sha512sum: $SHA"
fi
Expand Down

0 comments on commit 6bab2d2

Please sign in to comment.