Skip to content

Commit

Permalink
Moved kubeflow-pipelines-manifests to GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: vmudadla <vmudadla@redhat.com>
  • Loading branch information
VaniHaripriya committed Aug 2, 2024
1 parent c420f8c commit abae5de
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/kubeflow-pipelines-manifests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: kubeflow pipelines manifests

on:
push:
branches: [master]
pull_request:
paths:
- 'manifests/kustomize/**'

jobs:
kubeflow-pipelines-manifests:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
version: 'latest'

- name: Run tests
run: ./manifests/kustomize/hack/presubmit.sh
16 changes: 15 additions & 1 deletion manifests/kustomize/hack/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,35 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)"
TMP="$(mktemp -d)"

pushd "${TMP}"

# Install Kustomize
KUSTOMIZE_VERSION=5.2.1
# Remove existing kustomize if it exists
if [ -f "/usr/local/bin/kustomize" ]; then
echo "Removing existing kustomize from /usr/local/bin"
sudo rm /usr/local/bin/kustomize
fi
# Reference: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/
curl -s -O "https://raw.githubusercontent.com/\
kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
chmod +x install_kustomize.sh
./install_kustomize.sh "${KUSTOMIZE_VERSION}" /usr/local/bin/

# Install yq
# Reference: https://github.com/mikefarah/yq/releases/tag/3.4.1
curl -s -LO "https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64"
chmod +x yq_linux_amd64
mv yq_linux_amd64 /usr/local/bin/yq

# Install kpt
KPT_VERSION=1.0.0-beta.54
# Reference: https://github.com/GoogleContainerTools/kpt/releases/tag/v1.0.0-beta.54
curl -s -LO "https://github.com/GoogleContainerTools/kpt/releases/download/v${KPT_VERSION}/kpt_linux_amd64"
chmod +x kpt_linux_amd64
mv kpt_linux_amd64 /usr/local/bin/kpt
popd

# kpt and kubectl should already be installed in gcr.io/google.com/cloudsdktool/cloud-sdk:latest
# kustomize and kubectl should already be installed in google-github-actions/setup-gcloud@v2:latest
# so we do not need to install them here

# trigger real unit tests
Expand Down

0 comments on commit abae5de

Please sign in to comment.