Skip to content

Commit

Permalink
Install required package in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdchen committed Dec 23, 2024
1 parent a98618b commit d68f8c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ name: Check task migrations
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Install dependencies
run: |
yq --version
kubectl version
echo "Install tkn"
curl -L https://github.com/tektoncd/cli/releases/download/v0.39.0/tkn_0.39.0_Linux_x86_64.tar.gz | \
sudo tar -xz --no-same-owner -C /usr/bin/ tkn
echo "Install tekton pipeline"
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
- name: Run check
run: |
# Require name main
Expand Down
4 changes: 2 additions & 2 deletions hack/validate-migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ preprocess_pipelines() {
done <<<"$pushed_pipelines"

mkdir -p "${WORK_DIR}/pipelines/local"
oc kustomize --output "${WORK_DIR}/pipelines/local" pipelines/
kubectl kustomize --output "${WORK_DIR}/pipelines/local" pipelines/

local -r names="${pl_names_in_config[*]}"
read -r hexdigits _ < <(sha256sum "${BASH_SOURCE[0]}")
Expand Down Expand Up @@ -216,7 +216,7 @@ check_version_match() {
if is_normal_task "$task_dir" "$task_name" ; then
task_version=$(yq "$label" "${task_dir}/${task_name}.yaml")
elif is_kustomized_task "$task_dir" "$task_name"; then
task_version=$(oc kustomize "$task_dir" | yq "$label")
task_version=$(kubectl kustomize "$task_dir" | yq "$label")
else
exit 1
fi
Expand Down

0 comments on commit d68f8c6

Please sign in to comment.