mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
✅ Attempt rocketeer file backup in GHA
This commit is contained in:
parent
7d92cea680
commit
386e449376
13
.github/workflows/deploy-functions.yml
vendored
13
.github/workflows/deploy-functions.yml
vendored
@ -50,6 +50,19 @@ jobs:
|
||||
echo "Project is now set to ${{ secrets.FIREBASE_PROJECT_ID_PRODUCTION }}"
|
||||
gcloud firestore export ${{ secrets.GCP_BUCKET_LINK_PRODUCTION }}/firestore-backups/$(date +'%Y-%m-%d-%s')/
|
||||
|
||||
- name: Backup Rocketeer storage
|
||||
run: |
|
||||
mkdir rocketeer-image-backups
|
||||
gcloud config set project ${{ secrets.FIREBASE_PROJECT_ID_PRODUCTION }}
|
||||
echo "Project is now set to ${{ secrets.FIREBASE_PROJECT_ID_PRODUCTION }}"
|
||||
gcloud -m cp -r ${{ secrets.GCP_BUCKET_LINK_PRODUCTION }}/mainnetRocketeers ./rocketeer-image-backups/
|
||||
gzip -r -v -9 ./rocketeer-image-backups/
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: rocketeer-image-backup.gz
|
||||
path: ./rocketeer-image-backups.gz
|
||||
|
||||
|
||||
- name: Deploy to Firebase
|
||||
uses: w9jds/firebase-action@master
|
||||
|
Loading…
x
Reference in New Issue
Block a user