argoproj / argo-workflows

Workflow Engine for Kubernetes
https://argo-workflows.readthedocs.io/
Apache License 2.0
15.11k stars 3.21k forks source link

Add an example of CI/CD - one that builds Argo Workflows, using Argo Workflows #8591

Open alexec opened 2 years ago

alexec commented 2 years ago

Users want a more detailed example of doing CI and CD. We should have one that builds Argo Workflows (so it is Argo all the way down):

CI:

CD:

Pipline:

KirtiGhugtyal6 commented 2 years ago

Can I work on this issue?

Yh010 commented 2 years ago

I would like to work on this issue. I am completely new to Kubernetes, could you pls guide me on how to get this issue solved?

terrytangyuan commented 2 years ago

Removing assignee as there hasn't been any progress. Feel free to update here if you are still working on it.

terrytangyuan commented 2 years ago

I would like to work on this issue. I am completely new to Kubernetes, could you pls guide me on how to get this issue solved?

You'll need to be familiar with Kubernetes.

surbhiahuja commented 2 years ago

@terrytangyuan , I have worked on the initial draft of writing examples and use cases of ARGO CD, Please assign this to me and I will raise a PR ASAP.

surbhiahuja commented 2 years ago

@alexec , I have added a few detailed examples for ARGO CI-CD, Please review and share your inputs. https://github.com/argoproj/argo-workflows/pull/9596

surbhiahuja commented 2 years ago

@terrytangyuan , Please look into PR raised and suggest if any changes are required https://github.com/argoproj/argo-workflows/pull/9596

mahi072 commented 2 years ago

I would like to work on this issue, if it is still open.

caelan-io commented 1 year ago

@StevenYuanyuan - are you working on this issue already?

@mahi072 will take on if you no longer plan to.

zren11 commented 1 year ago

Hi @caelan-io, @mahi072 can take on it

Sajiyah-Salat commented 1 year ago

Hello I have done somework in kubernetes and I know ci/cd but completely new to argo cd. can someone guide me for the next steps. and if required provide me some materials please.

Sajiyah-Salat commented 1 year ago

/assign

caelan-io commented 1 year ago

Thanks, @Sajiyah-Salat - please feel free to take this one on! Let me know if have any questions.

Also, if anyone is looking for 80% of a solution to this issue, please refer to this Argo CI example repo built by @tico24 : https://github.com/pipekit/argo-workflows-ci-example

If you want a simple example to get started with CI using Argo Workflows for your own personal or work codebase, check out that repo. It uses a GitOps approach to pulling a repo, building a container, and then deploying a simple website to an Argo CD app.

Important note:

In order to make this a semi-usable example, we have cut a number of security corners. Please don't just blindly run this in production.

TheSwarnim commented 1 year ago

Hi all, if no one is picking this issue I wanted to pick this task

aakankshabhende commented 1 year ago

@caelan-io @alexec I would like to work on this issue. Could you please assign me this?

caelan-io commented 1 year ago

Thanks @aakankshabhende. Assigned you. 🙌

agilgur5 commented 1 year ago

Removing assignee as there has been no progress.

Please feel free to submit a PR without being assigned.

wesleyscholl commented 1 month ago

@agilgur5 @alexec I started working on this:

CI

CD

Pipeline

wesleyscholl commented 1 week ago

@agilgur5 @alexec I started working on this:

CI

  • [x] WorkflowEventBinding
  • [x] WorkflowTemplate - Build the CLI.
  • [x] WorkflowTemplate - Build images using Buildkit - Pushes image to Docker Hub
  • [x] WorkflowTemplate - Run unit tests and collect test report.
  • [x] WorkflowTemplate - Run coverage and collect report.
  • [x] WorkflowTemplate - Deploy to a cluster.
  • [x] WorkflowTemplate - Run basic E2E tests and collect report.
  • [x] CI Documentation

CD

  • [x] Tag and push tag.
  • [x] Update deployment manifests using kustomize edit set image.
  • [x] Commit deployment manifests.
  • [x] Start Argo CD sync step.
  • [x] CD Documentation

Pipeline

  • [x] Combine CI and CD jobs with an approval step.
  • [x] Pipeline Documentation

PR #13895 - Completed the CI/CD example workflow.