-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathaction.yml
39 lines (39 loc) · 1.11 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Deploy prerequisites'
description: 'Prerequisites needed to deploy hubs in a 2i2c cluster'
inputs:
cluster:
description: 'Cluster name'
required: true
default: '2i2c'
runs:
using: "composite"
steps:
- name: Get gcloud info
run: gcloud info
shell: bash
- name: Fetch helm charts
run: |
helm repo add jetstack https://charts.jetstack.io
helm repo update
cd hub-templates
helm dep up basehub
helm dep up daskhub
shell: bash
- name: Setup gcloud auth for docker
# FIXME: Add more auth providers & registries here as needed
run: |
gcloud auth configure-docker us-central1-docker.pkg.dev
shell: bash
- name: Setup dependencies
run: |
python3 -m pip install -r requirements.txt
python3 -m pip install -r dev-requirements.txt
shell: bash
- name: Deploy support components
run: |
python3 deployer deploy-support ${{ inputs.cluster }}
shell: bash
- name: Deploy and test hubs
run: |
python3 deployer deploy ${{ inputs.cluster }}
shell: bash