-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(RELEASE-1319): move tasks based on type
This commit moves all the tasks in this directory. Most of the tasks are now in tasks/managed. This is for all tasks used directly in a managed pipeline. There is also tasks/internal for tasks used in internal-request or internal-pipelinerun pipelines and tasks/collectors for collector pipeline tasks. The commit also updates the CI for the tekton unit tests for the new task locations. A sym link was created for the internal tasks that were in `tasks` to their previous locations. This is because the `simple-signing-pipeline` which calls them is not always called via git resolver, so it is temporary backwards compatibility. Finally, the commit modifies the definition of each pipeline as the pathInRepo value of each task git resolver has to be updated for the new location. This comes with a version bump. Signed-off-by: Johnny Bieren <[email protected]>
- Loading branch information
1 parent
d8943bc
commit c35c735
Showing
512 changed files
with
498 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,37 +18,25 @@ jobs: | |
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: | | ||
tasks/** | ||
dir_names: "true" | ||
dir_names_max_depth: "2" | ||
- name: Get internal changed dirs | ||
id: changed-internal-dirs | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: | | ||
internal/tasks/** | ||
tasks/*/** | ||
dir_names: "true" | ||
dir_names_max_depth: "3" | ||
- name: Show changed dirs | ||
run: | | ||
echo ${{ steps.changed-dirs.outputs.all_changed_files }} \ | ||
${{ steps.changed-internal-dirs.outputs.all_changed_files }} | ||
echo ${{ steps.changed-dirs.outputs.all_changed_files }} | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
if: | | ||
steps.changed-dirs.outputs.any_changed == 'true' || | ||
steps.changed-internal-dirs.outputs.any_changed == 'true' | ||
steps.changed-dirs.outputs.any_changed == 'true' | ||
- name: Check cluster info | ||
if: | | ||
steps.changed-dirs.outputs.any_changed == 'true' || | ||
steps.changed-internal-dirs.outputs.any_changed == 'true' | ||
steps.changed-dirs.outputs.any_changed == 'true' | ||
run: | | ||
kubectl cluster-info | ||
- name: Install Tekton | ||
timeout-minutes: 10 | ||
if: | | ||
steps.changed-dirs.outputs.any_changed == 'true' || | ||
steps.changed-internal-dirs.outputs.any_changed == 'true' | ||
steps.changed-dirs.outputs.any_changed == 'true' | ||
run: | | ||
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml | ||
|
@@ -69,15 +57,12 @@ jobs: | |
kubectl get pods --namespace tekton-pipelines | ||
- name: Install tkn | ||
if: | | ||
steps.changed-dirs.outputs.any_changed == 'true' || | ||
steps.changed-internal-dirs.outputs.any_changed == 'true' | ||
steps.changed-dirs.outputs.any_changed == 'true' | ||
uses: ./.github/actions/install-tkn | ||
- name: Test Tekton tasks | ||
if: | | ||
steps.changed-dirs.outputs.any_changed == 'true' || | ||
steps.changed-internal-dirs.outputs.any_changed == 'true' | ||
steps.changed-dirs.outputs.any_changed == 'true' | ||
run: .github/scripts/test_tekton_tasks.sh | ||
env: | ||
TEST_ITEMS: >- | ||
${{ steps.changed-dirs.outputs.all_changed_files }} | ||
${{ steps.changed-internal-dirs.outputs.all_changed_files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../tasks/check-embargoed-cves-task/check-embargoed-cves-task.yaml | ||
../../tasks/internal/check-embargoed-cves-task/check-embargoed-cves-task.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../tasks/collect-simple-signing-params/collect-simple-signing-params.yaml | ||
../../tasks/internal/collect-simple-signing-params/collect-simple-signing-params.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../tasks/create-advisory-task/create-advisory-task.yaml | ||
../../tasks/internal/create-advisory-task/create-advisory-task.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../tasks/process-file-updates-task/process-file-updates-task.yaml | ||
../../tasks/internal/process-file-updates-task/process-file-updates-task.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../tasks/publish-index-image-task/publish-index-image-task.yaml | ||
../../tasks/internal/publish-index-image-task/publish-index-image-task.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../tasks/pulp-push-disk-images/pulp-push-disk-images.yaml | ||
../../tasks/internal/pulp-push-disk-images/pulp-push-disk-images.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.