From 89b9bd49ac953330c11344f43c36e5d5c3027f8b Mon Sep 17 00:00:00 2001 From: John Calderon <81483067+johncalesp@users.noreply.github.com> Date: Thu, 30 Mar 2023 15:07:34 -0400 Subject: [PATCH] Providers GitHub action (#54) * setup for github action * added .env to gitignore * added new workflow * filter action with path * changed gitignore --- .github/workflows/update-cloud-providers.yaml | 29 +++ .../react-ui/src/schema/providers.json | 167 ++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 .github/workflows/update-cloud-providers.yaml create mode 100644 skyline-vscode/react-ui/src/schema/providers.json diff --git a/.github/workflows/update-cloud-providers.yaml b/.github/workflows/update-cloud-providers.yaml new file mode 100644 index 0000000..2276d38 --- /dev/null +++ b/.github/workflows/update-cloud-providers.yaml @@ -0,0 +1,29 @@ +name: update-cloud-providers + +on: + pull_request_target: + types: + - closed + branches: + - main + paths: + - 'skyline-vscode/react-ui/src/schema/providers.json' + +jobs: + update-information: + if: (github.event.pull_request.merged == true) + runs-on: ubuntu-latest + steps: + - name: "Set AWS credentials" + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-region: ${{ secrets.DV_EXPLORE_AWS_REGION }} + aws-access-key-id: ${{ secrets.DV_EXPLORE_AWS_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.DV_EXPLORE_AWS_SECRET_ACCESS_KEY }} + + - name: Fetch repository + uses: actions/checkout@v3 + + - name: Upload cloud provider file to S3 + run: | + aws s3 cp skyline-vscode/react-ui/src/schema/providers.json s3://deepview-explorer-public/vscode-cloud-providers/ \ No newline at end of file diff --git a/skyline-vscode/react-ui/src/schema/providers.json b/skyline-vscode/react-ui/src/schema/providers.json new file mode 100644 index 0000000..95ebd12 --- /dev/null +++ b/skyline-vscode/react-ui/src/schema/providers.json @@ -0,0 +1,167 @@ +[ + { + "name": "gcp", + "logo": "resources/google.png", + "color": "#ea4335", + "instances": [ + { + "name": "a2-highgpu-1g", + "gpu": "a100", + "ngpus": 1, + "cost": 3.67 + }, + { + "name": "n1-standard-1", + "gpu": "t4", + "ngpus": 1, + "cost": 0.4 + }, + { + "name": "n1-standard-1", + "gpu": "v100", + "ngpus": 1, + "cost": 2.53 + }, + { + "name": "n1-standard-1", + "gpu": "p100", + "ngpus": 1, + "cost": 1.51 + }, + { + "name": "a2-highgpu-2g", + "gpu": "a100", + "ngpus": 2, + "cost": 7.35 + }, + { + "name": "n1-standard-1", + "gpu": "t4", + "ngpus": 2, + "cost": 0.75 + }, + { + "name": "n1-standard-1", + "gpu": "v100", + "ngpus": 2, + "cost": 5.01 + }, + { + "name": "n1-standard-1", + "gpu": "p100", + "ngpus": 2, + "cost": 2.97 + }, + { + "name": "a2-highgpu-4g", + "gpu": "a100", + "ngpus": 4, + "cost": 14.7 + }, + { + "name": "n1-standard-1", + "gpu": "t4", + "ngpus": 4, + "cost": 1.45 + }, + { + "name": "n1-standard-1", + "gpu": "v100", + "ngpus": 4, + "cost": 9.97 + }, + { + "name": "n1-standard-1", + "gpu": "p100", + "ngpus": 4, + "cost": 5.89 + } + ] + }, + { + "name": "aws", + "logo": "resources/aws.png", + "color": "#ff9900", + "instances": [ + { + "name": "p3.2xlarge", + "gpu": "v100", + "ngpus": 1, + "cost": 3.06 + }, + { + "name": "g4dn.xlarge", + "gpu": "t4", + "ngpus": 1, + "cost": 0.526 + }, + { + "name": "g4dn.12xlarge", + "gpu": "t4", + "ngpus": 4, + "cost": 3.912 + }, + { + "name": "p3.8xlarge", + "gpu": "v100", + "ngpus": 4, + "cost": 12.24 + } + ] + }, + { + "name": "azure", + "logo": "resources/azure.png", + "color": "#008AD7", + "instances": [ + { + "name": "NC6s v2", + "gpu": "p100", + "ngpus": 1, + "cost": 2.07 + }, + { + "name": "NC6s v3", + "gpu": "v100", + "ngpus": 1, + "cost": 3.06 + }, + { + "name": "NC4as T4 v3", + "gpu": "t4", + "ngpus": 1, + "cost": 0.526 + }, + { + "name": "NC12s v2", + "gpu": "p100", + "ngpus": 2, + "cost": 4.14 + }, + { + "name": "NC12s v3", + "gpu": "v100", + "ngpus": 2, + "cost": 6.12 + }, + { + "name": "NC24rs v2", + "gpu": "p100", + "ngpus": 4, + "cost": 9.108 + }, + { + "name": "NC24rs v3", + "gpu": "v100", + "ngpus": 4, + "cost": 13.46 + }, + { + "name": "NC64as T4 v3", + "gpu": "t4", + "ngpus": 4, + "cost": 4.352 + } + ] + } +]