-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from NASA-IMPACT/dev
Promote dev to main
- Loading branch information
Showing
48 changed files
with
2,872 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Deploy SM2A | ||
|
||
inputs: | ||
env_aws_secret_name: | ||
required: true | ||
type: string | ||
env-file: | ||
type: string | ||
default: ".env" | ||
dir: | ||
required: false | ||
type: string | ||
default: "." | ||
aws-region: | ||
required: false | ||
type: string | ||
default: "us-west-2" | ||
script_path: | ||
type: string | ||
backend_stack_name: | ||
type: string | ||
auth_stack_name: | ||
type: string | ||
|
||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
cache: "pip" | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: 1.3.3 | ||
|
||
- name: Deploy | ||
working-directory: ${{ inputs.dir }} | ||
shell: bash | ||
env: | ||
AWS_DEFAULT_REGION: ${{ inputs.aws-region }} | ||
AWS_REGION: ${{ inputs.aws-region }} | ||
run: | | ||
make sm2a-deploy ENV_FILE=${{ inputs.env-file }} SECRET_NAME=${{ inputs.env_aws_secret_name }} | ||
- name: Output workflows API endpoint | ||
id: output_sm2a_workflows_endpoint | ||
shell: bash | ||
working-directory: ${{ inputs.dir }} | ||
run: | | ||
cd ./infrastructure | ||
terraform output -json Airflow_url > ${HOME}/output_sm2a_workflows_endpoint.json | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,4 @@ runs: | |
run: | | ||
cd ./infrastructure | ||
terraform output -json workflows_api > ${HOME}/terraform_outputs.json | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.PHONY: | ||
clean | ||
all | ||
test | ||
list | ||
|
||
list: | ||
$(MAKE) -C sm2a list | ||
|
||
all: | ||
$(MAKE) -C sm2a all | ||
|
||
sm2a-local-run: | ||
$(MAKE) -C sm2a sm2a-local-run | ||
|
||
sm2a-local-init: | ||
$(MAKE) -C sm2a sm2a-local-init | ||
|
||
sm2a-local-stop: | ||
$(MAKE) -C sm2a sm2a-local-stop | ||
|
||
sm2a-deploy: | ||
$(MAKE) -C sm2a sm2a-deploy | ||
|
||
sm2a-local-build: | ||
$(MAKE) -C sm2a sm2a-local-build | ||
|
||
clean: | ||
$(MAKE) -C sm2a clean | ||
|
||
test: | ||
pytest tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.