Skip to content

Commit

Permalink
Split up deploy and deploy-clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield committed Sep 18, 2022
1 parent abf0476 commit b5c49f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cdp_backend/infrastructure/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ setup project region=default_region:
@ echo "----------------------------------------------------------------------------"

# deploy the CDP specific firestore and storage requirements
deploy project cookiecutter_yaml=default_cookiecutter_yaml key=default_key region=default_region:
deploy project cookiecutter_yaml=default_cookiecutter_yaml:
just enable-services
firebase use --add {{project}}
firebase deploy --only firestore:rules
Expand All @@ -90,6 +90,9 @@ deploy project cookiecutter_yaml=default_cookiecutter_yaml key=default_key regio
gsutil cors set cors.json gs://{{project}}.appspot.com/
gsutil defacl ch -u AllUsers:R gs://{{project}}.appspot.com/
gsutil lifecycle set {{justfile_directory()}}/lifecycle-rules.json gs://{{project}}.appspot.com/

deploy-clipping key=default_key region=default_region:
just enable-services
cd {{justfile_directory()}}/gcloud-functions/generate-clip/ && \
cp {{key}} ./GOOGLE_CREDENTIALS.json && \
gcloud functions deploy generate-clip \
Expand Down
12 changes: 12 additions & 0 deletions dev-infrastructure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ Example:
just deploy cdp-eva-dev-001
```

Enable video / audio clipping:

```bash
just deploy-clipping {key} {region}
```

Example:

```bash
just deploy-clipping /home/active/cdp/cdp-eva-dev-001.json us-central
```

### All Commands

- See Justfile commands with `just` or open the Justfile.
Expand Down

0 comments on commit b5c49f3

Please sign in to comment.