mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Test values to see if it works
This commit is contained in:
parent
ac88c38ba9
commit
ce244555be
2 changed files with 3 additions and 16 deletions
|
@ -5,10 +5,10 @@ stages:
|
|||
|
||||
variables:
|
||||
ANDROID_VERSION_NAME:
|
||||
value: ""
|
||||
value: "test"
|
||||
description: "Enter the version name here (e.g. 1.0.1)."
|
||||
ANDROID_VERSION_CODE:
|
||||
value: ""
|
||||
value: "test2"
|
||||
description: "Enter the version code here (e.g. 1)."
|
||||
|
||||
include:
|
||||
|
|
|
@ -16,17 +16,4 @@ touch $DOCUMENT_ROOT/maintenance.file
|
|||
echo "Deploying content..."
|
||||
echo $ANDROID_VERSION_CODE > /var/www/html/fcast-version.txt
|
||||
cp ./app/build/outputs/apk/defaultFlavor/release/app-defaultFlavor-release.apk /var/www/html/fcast-release.apk
|
||||
cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab /var/www/html/fcast-playstore-release.aab
|
||||
|
||||
# Notify Cloudflare to wipe the CDN cache
|
||||
echo "Purging Cloudflare cache..."
|
||||
curl -X POST "https://api.cloudflare.com/client/v4/zones/ff904f7348b9513064b23e852e328abb/purge_cache" \
|
||||
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
--data '{"purge_everything":true}'
|
||||
|
||||
sleep 30
|
||||
|
||||
# Take site back online
|
||||
echo "Bringing site back online..."
|
||||
rm $DOCUMENT_ROOT/maintenance.file
|
||||
cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab /var/www/html/fcast-playstore-release.aab
|
Loading…
Add table
Add a link
Reference in a new issue