-
Is it possible to add one getting started document for how to use argo workflow with normal github/gitlab CI project? Suppose simple python hello world tasks like
// i want to check how PVC/security is handled normal for those kind of case
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
Would you like to write this doc? |
Beta Was this translation helpful? Give feedback.
-
IntroductionIt is just my understanding now, can be totally wrong ;-). (@alexec replied below that I had some wrong understanding, but I keep it as history log) Here gives a short explanation for user wants to use argo workflow as alternative for your CI framework (gitlab-ci, github actions, travis-ci, jenkins) argo workflow is not a complete CI solution, it needs other compoments to fullfil your tasks. it is cloud native workflow execution engine If you want to have complete simple solution quickly, recommended to use "jenkins + argoworkflow" (TODO) Getting started python project using argoworkflow How CI worksLet's take a look at how CI general works, and how argoworkflow and other ci works in this area
triggerargo-workflow doesn't cover this, you can use argo-events or webhook to trigger the flow, for different type of git repo, solution could be different. If you are familiar with jenkins, it could be good choice as well to have jenkins in front, since it has lots of mature plugin to cover it. anyway, it is not nature enough like github action and gitlab-ci token to access git repofor public repo, just git clone, see sample input-artifact-git.yaml otherwise it needs token to access, which leads to secrets and sealedsecrets workspacefor github action, it is VM based, shared workspace via volume sharing, for argo workflow, u need to arrange pvc to be shared see example ci.yaml, this is a good start! archive the resultall ci framework has different solutions for it, be prepared. using extra service like nginx/artifactory could be good simple solution. Example for github python projectTODO Jenkins + argo workflow (without events)Use jenkins plugin mechanism to get triggered and inject flow to argo workflow Suggestion to argoprojI do hope argoproject can create argo-ci project again to focus on providing complete CI solution
Reference
|
Beta Was this translation helpful? Give feedback.
-
This is not quite correct. Triggers are (a) cron schedule (b) web hook. Argo has both: (a) |
Beta Was this translation helpful? Give feedback.
-
See also: https://github.com/argoproj/argo-workflows/blob/master/examples/ci-workflowtemplate.yaml |
Beta Was this translation helpful? Give feedback.
-
Getting started with github golang project for CIargo workflows is a nice cloud native workflow execution engine, surely it can work like normal CI engine as well, and it needs to be done through with different setups. Below is a simple guideline using official documentation and example. InstallationYou need one kubernetes cluster installed with argo server and argo-cli locally, see argo workflows quick start For client at mac, I use brew command to install directly, it default uses your kube config without extra token to access argo server
Getting started with golang project for CIThe example yaml file is ci.yaml@99359a0950, it is used to build golang example project https://github.com/golang/example . In short, do below
Use argo-ci namespacesince git checkoutIt is stated in Hardwired Artifacts, git is built-in support already. it is in ci.yaml#L55
the workspaceworkspace is managed by volumes, which is kubernetes pvc concept, which needs to be specified in each step. depends on your storage in your cluster, it could be nfs or others as default
Further checkYou can further check with argo workflow templates, cron workflows and all in quick-start Reference
from community
|
Beta Was this translation helpful? Give feedback.
-
argo workflow CI for python project@githubHere is another working example for python https://github.com/larrycai/hello-python/blob/main/.argo/workflows/ci-python.yaml from larrycai/hello-python, which u can compare with github actions Give a try
|
Beta Was this translation helpful? Give feedback.
-
I have just been made aware of this discussion. I wrote this, which doesn't quite fulfil what you asked. It aims to demonstrate an Argo Workflows CI with a focus on making it easy to run so that the user can disect it to work out what's going on. Therefore quite a lot of security is blown out of the water! |
Beta Was this translation helpful? Give feedback.
Getting started with github golang project for CI
argo workflows is a nice cloud native workflow execution engine, surely it can work like normal CI engine as well, and it needs to be done through with different setups.
Below is a simple guideline using official documentation and example.
Installation
You need one kubernetes cluster installed with argo server and argo-cli locally, see argo workflows quick start
For client at mac, I use brew command to install directly, it default uses your kube config without extra token to access argo server
Getting started with golang project for CI
The example yaml file is ci.yaml@99359a0950, it is used to build golang example proj…