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 00b8f1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ 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 command line tools
run: |
# TODO: install tkn, kubectl, yq
sudo apt-get install -y kubectl kustomize yq
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
- 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 00b8f1e

Please sign in to comment.