2023-08-24 16:07:40 +00:00
|
|
|
if [[ -z "${AWS_ACCESS_KEY_ID}" ]]; then
|
|
|
|
echo Missing AWS access key. Skip deployment.
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z "${AWS_SECRET_ACCESS_KEY}" ]]; then
|
|
|
|
echo Missing AWS secret key. Skip deployment.
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2023-08-26 13:59:58 +00:00
|
|
|
if [ ! "$DRONE_COMMIT_BRANCH" == "master" ]; then
|
2023-08-24 16:07:40 +00:00
|
|
|
echo Not on master branch. Skip deployment.
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd build && aws --endpoint-url https://s3.communiquons.org s3 sync . s3://geneit-app
|