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 24, 2024
1 parent a98618b commit 4ba35b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ 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
uses: helm/[email protected]
with:
cluster_name: kind
- uses: tektoncd/actions/setup-tektoncd@main
with:
pipeline_version: latest
- name: Run check
run: |
kubectl get all -n tekton-pipelines
# Require name main
git branch main origin/main
# Make `git branch --show-current` works.
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 4ba35b2

Please sign in to comment.