Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design a build & test pipeline for Quarkus #2

Open
cmoulliard opened this issue Mar 9, 2023 · 0 comments
Open

Design a build & test pipeline for Quarkus #2

cmoulliard opened this issue Mar 9, 2023 · 0 comments

Comments

@cmoulliard
Copy link
Contributor

cmoulliard commented Mar 9, 2023

Todo

Design a new build & test PipelineRun "pipelinerun-build-test.yml" for a Quarkus Hello application under the folder

https://github.com/redhat-buildpacks/tekton-pac-poc/tree/main/k8s

This Pipeline will executed top of the git repo - https://github.com/redhat-buildpacks/tekton-pac-poc using a PR created from a testing-xxx branch.

When the PR is created, then the Tekton PipelineAsCode controller running on the Hetzner cluster - https://pac.65.108.212.158.nip.io/ will be notified from the GitHub App - https://github.com/organizations/redhat-buildpacks/settings/apps/tektonci-on-hetzner and the pipeline will be launched using as input the github repo hosting the quarkus app.

Pipeline Structure
- Task1
- Task2 has Run After Task1
- Task3 has Run After Task2
- Task4 as Finally Task

where

  • Task1 (maven) will execute a maven goal able to generate k8s yaml resources and save it in a workspace/volume mounted
  • Task2 (kube-action) will execute a kubectl command to deploy in a namespace the generated resources (= what comes from Task1 in a shared volume)
  • Task3 (kube-action) will execute a test case to verify if the k8s service (= created with Task2) is replying. If test succeeded then we should return "succeed". If no "failure".
  • Task4 (kube-action). We must remove the deployed k8s resources no matter if task3 succeeded or failed using shared volume

Maven task: https://github.com/tektoncd/catalog/tree/main/task/maven
Kubernetes-action: https://github.com/tektoncd/catalog/tree/main/task/kubernetes-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant