-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
657 additions
and
1 deletion.
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,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 |
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 |
---|---|---|
@@ -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. |
Oops, something went wrong.