Skip to content

Commit

Permalink
Merge pull request #323 from ksimon1/onboard-to-artifact-hub
Browse files Browse the repository at this point in the history
feat: preparation for onboarding tasks to artifact hub
  • Loading branch information
ksimon1 authored Feb 14, 2024
2 parents 45a0175 + 1013da0 commit eb38ccc
Show file tree
Hide file tree
Showing 43 changed files with 478 additions and 342 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/artifact-hub-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: artifact hub linter
on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run ah linter
run: make run-ah-linter
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
git rebase upstream/main
git checkout -b update-tekton-tasks-manifests-${RELEASE_VERSION}
sed -i "s/export RELEASE_VERSION.*=.*/export RELEASE_VERSION ?=${RELEASE_VERSION}/g" scripts/makefile-snippets/makefile-release.mk
make generate-yaml-tasks
make generate-yaml-tasks copy-released-manifests
git add .
git commit -sm "Update tekton tasks manifests to version ${RELEASE_VERSION}"
git push --set-upstream origin update-tekton-tasks-manifests-${RELEASE_VERSION}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/dist/
.idea/
ah
1 change: 1 addition & 0 deletions configs/cleanup-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ task_name: cleanup-vm
task_category: execute-in-vm
# execute-in-vm.yaml main_image should be also updated to match this one!
main_image: quay.io/kubevirt/tekton-tasks
nice_name: cleanup VM
1 change: 1 addition & 0 deletions configs/copy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ task_name: copy-template
task_category: copy-template
main_image: quay.io/kubevirt/tekton-tasks
is_okd: true
nice_name: copy template
1 change: 1 addition & 0 deletions configs/create-vm-from-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ task_name: create-vm-from-manifest
task_category: create-vm
# create-vm-from-template.yaml main_image should be also updated to match this one!
main_image: quay.io/kubevirt/tekton-tasks
nice_name: create VM from manifest
1 change: 1 addition & 0 deletions configs/create-vm-from-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ task_category: create-vm
# create-vm-from-manifest.yaml main_image should be also updated to match this one!
main_image: quay.io/kubevirt/tekton-tasks
is_okd: true
nice_name: create VM from template
1 change: 1 addition & 0 deletions configs/disk-virt-customize.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
task_name: disk-virt-customize
task_category: disk-virt-customize
main_image: quay.io/kubevirt/tekton-tasks-disk-virt
nice_name: disk virt customize
1 change: 1 addition & 0 deletions configs/disk-virt-sysprep.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
task_name: disk-virt-sysprep
task_category: disk-virt-sysprep
main_image: quay.io/kubevirt/tekton-tasks-disk-virt
nice_name: disk virt sysprep
1 change: 1 addition & 0 deletions configs/execute-in-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ task_name: execute-in-vm
task_category: execute-in-vm
# cleanup-vm.yaml main_image should be also updated to match this one!
main_image: quay.io/kubevirt/tekton-tasks
nice_name: execute in vm
1 change: 1 addition & 0 deletions configs/generate-ssh-keys.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
task_name: generate-ssh-keys
task_category: generate-ssh-keys
main_image: quay.io/kubevirt/tekton-tasks
nice_name: generate ssh keys
1 change: 1 addition & 0 deletions configs/modify-data-object.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
task_name: modify-data-object
task_category: modify-data-object
main_image: quay.io/kubevirt/tekton-tasks
nice_name: modify data object
3 changes: 0 additions & 3 deletions configs/modify-object-task.yaml

This file was deleted.

1 change: 1 addition & 0 deletions configs/modify-vm-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ task_name: modify-vm-template
task_category: modify-vm-template
main_image: quay.io/kubevirt/tekton-tasks
is_okd: true
nice_name: modify VM template
1 change: 1 addition & 0 deletions configs/modify-windows-iso-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ task_category: modify-windows-iso-file
extract_iso_image: quay.io/kubevirt/tekton-tasks-disk-virt
modify_iso_image: quay.io/kubevirt/tekton-tasks
create_iso_image: quay.io/kubevirt/tekton-tasks
nice_name: modify Windows iso
1 change: 1 addition & 0 deletions configs/wait-for-vmi-status.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
task_name: wait-for-vmi-status
task_category: wait-for-vmi-status
main_image: quay.io/kubevirt/tekton-tasks
nice_name: wait for VMI status
8 changes: 8 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ build-release-images:
push-release-images:
./scripts/push-release-images.sh

copy-released-manifests:
./scripts/copy-released-manifests.sh

run-ah-linter:
./scripts/run-ah-linter.sh

release: generate-yaml-tasks build-release-images push-release-images

vendor:
Expand All @@ -74,6 +80,8 @@ vendor:
cluster-clean \
cluster-clean-and-skip-images \
release \
copy-released-manifests \
e2e-tests \
run-ah-linter \
onboard-new-task-with-ci-stub \
vendor
141 changes: 82 additions & 59 deletions manifests/kubernetes/kubevirt-tekton-tasks-kubernetes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb38ccc

Please sign in to comment.