Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aronchick committed Apr 1, 2021
1 parent 58ec7ad commit f444f38
Show file tree
Hide file tree
Showing 4 changed files with 657 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/run-on-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SAME Program Deployment

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install SAME Client and Setup credentials
run: |
curl -L0 https://get.sameproject.org | bash -
source ~/.bashrc
mkdir -p ~/.kube
echo "${{ secrets.kubeconfig }}" > ~/.kube/config
cat ~/.kube/config
mkdir -p ~/.same
touch ~/.same/config
echo "activecontext: " >> ~/.same/config.yaml
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
mkdir -p ~/.local/bin/kubectl
mv ./kubectl ~/.local/bin/kubectl
export PATH=$PATH:~/.local/bin/kubectl
echo "export KUBECONFIG=$HOME/.kube/config" >> $HOME/.bashrc
export KUBECONFIG=$HOME/.kube/config
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install KFP SDK for KFP DSL Compile tool
run: |
python -m pip install --upgrade pip
pip install kfp
- name: Deploy & Run SAME Program
run: |
same program run --experiment-name "${{ github.repository }}" --run-name "RELEASE-${{ env.RELEASE_VERSION }}" --run-param=sha=${{ github.sha }}
env:
KUBECONFIG: $HOME/.kube/config
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Housing_Model
# EXAMPLE-SAME-Enabled-Data-Science-Repo

This is a data science repo that is an example of what downloading from a real data science repo might be like.
Loading

0 comments on commit f444f38

Please sign in to comment.