mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 15:30:14 -04:00
31 lines
787 B
Makefile
31 lines
787 B
Makefile
output := dist/dynamicbible/
|
|
|
|
test:
|
|
npm ci
|
|
npm run-script lint
|
|
npm run-script test-headless
|
|
|
|
build-site:
|
|
npm ci
|
|
npm run-script build
|
|
|
|
build-android:
|
|
npm run-script copy
|
|
cd android/
|
|
./gradlew assembleRelease
|
|
./gradlew bundleRelease
|
|
|
|
build: build-site build-android
|
|
|
|
authorize-service-account:
|
|
gcloud auth activate-service-account ${gcloud_service_account_email} --key-file=${gcloud_service_account_key} | tee authorize.log
|
|
|
|
deploy-prod: authorize-service-account
|
|
gsutil -m rsync -d -r ${output} gs://dynamicbible.com
|
|
|
|
deploy-staging: authorize-service-account
|
|
gsutil -m rsync -d -r ${output} gs://staging.dynamicbible.com
|
|
|
|
update-bucket-configs: gcloud/buckets.yaml
|
|
gcloud deployment-manager deployments update --format=json dynamicbible-buckets --config gcloud/buckets.yaml
|