Files
acs-community-packaging/scripts/ci/copy_ags_to_release_bucket.sh
mikolajbrzezinski 8b391436db ACS-7683 Prepare for ACS 7.3.2 Service Pack (#1556)
Co-authored-by: Domenico Sibilio <domenicosibilio@gmail.com>
Co-authored-by: Damian Ujma <92095156+damianujma@users.noreply.github.com>
Co-authored-by: Piotr Żurek <Piotr.Zurek@hyland.com>
Co-authored-by: Aleksandra Onych <Aleksandra.Onych@hyland.com>
2024-04-24 09:46:51 +02:00

24 lines
764 B
Bash
Executable File

#!/usr/bin/env bash
echo "=========================== Starting Copy to Release Bucket Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
#
# Copy from S3 Release bucket to S3 eu.dl bucket
#
if [ -z "${RELEASE_VERSION}" ]; then
echo "Please provide a RELEASE_VERSION in the format <acs-version>-<additional-info> (e.g. 7.2.0-A2)"
exit 1
fi
SOURCE="s3://alfresco-artefacts-staging/community/RM/${RELEASE_VERSION}"
DESTINATION="s3://eu.dl.alfresco.com/release/community/RM/${RELEASE_VERSION}"
printf "\n%s\n%s\n" "${SOURCE}" "${DESTINATION}"
aws s3 cp --acl private --recursive --copy-props none "${SOURCE}" "${DESTINATION}"
set +vex
echo "=========================== Finishing Copy to Release Bucket Script =========================="