We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd10701 commit 5df85ebCopy full SHA for 5df85eb
stac_updater/cli.py
@@ -1,6 +1,7 @@
1
import os
2
import re
3
import shutil
4
+import subprocess
5
6
import click
7
import yaml
@@ -84,3 +85,10 @@ def add_notifications(topic_name):
84
85
86
with open(sls_config_path, 'w') as outf:
87
yaml.dump(sls_config, outf, indent=1)
88
+
89
+@stac_updater.command(name='deploy')
90
+def deploy():
91
+ subprocess.call("docker build . -t stac-updater:latest", shell=True)
92
+ subprocess.call("docker run --rm -v $PWD:/home/stac_updater -it stac-updater:latest package-service.sh", shell=True)
93
+ subprocess.call("npm install serverless-pseudo-parameters", shell=True)
94
+ subprocess.call("sls deploy -v", shell=True)
0 commit comments