#release-engineering - January 2019

January 2019
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
@Igor Rodionov ☝️
Igor Rodionov
Igor Rodionovalmost 8 years ago
Nice
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Hey we are evaluating diff tools for CI/CD (codefresh, buildkite, codepipeline, etc). I have a question for the users of codepipeline, how do you CD your pipeline definitions?
EG: in codefresh or buildkite, this is read from VCS when a run is triggered

Close I could see is have the pipeline, update the pipeline itself, but im a bit concerned how would this effect the run itself that updated the build.
Lets say you have a PR that updates the pipeline and some code to acomodate the pipeline update, you PR CI runs using the old pipeline.
Lets say you merge, it deploys the new pipeline update first, would the subsequent steps run with the updated pipeline?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
@Gonzalo Peci we have an example of using CodePipeline here https://github.com/cloudposse/terraform-aws-jenkins/blob/master/main.tf#L115
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
it deploys this repo (by default) https://github.com/cloudposse/jenkins
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Yeah I have seen that @Andriy Knysh (Cloud Posse) thanks
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
which is in the repo itself
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
i mean you can add any commends in there
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Yeah,but I dont know if that answers my question tho
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
yea, I don’t know either 🙂 was long time when we tested it
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
😄
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
I mean, the module deploys a pipeline, that is great, and then the jenkins repo has its own build definitions
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
which is also good
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
but then, what deploys the pipeline itself? another pipeline?
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
(talking about AWS codepipeline)
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
the module deploys it
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
when using codefresh, buildkite, etc you can define the pipeline itself in the repo
Gonzalo Peci
Gonzalo Pecialmost 8 years ago(edited)
the module defines the code for it, but does not deploy it
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
you have to "apply" that module somewhere
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
ah i see now what you mean 🙂
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
I have seen some other CI/CD tools/companies have a repo containing all the pipelines, and that itself had its own pipeline, manually deployed as it was simple enought
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
but meh, not a fan of that workflow
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
so for a workflow to update the pipeline itself, maybe consider atlantis
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 8 years ago
(which of cause needs its own pipeline to be deployed 🙂 or you can just apply it to deploy on fargate as @Erik Osterman (Cloud Posse) is doing now)
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Exactly! 😄 its the chicken and egg
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Yeah fargate seems perfect for atlantis
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
TBH, some of the things that we dont deploy often, I dont mind deploying "automanually"
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
as a side note, I think I mentioned this before, as much as I like the idea of atlantis I dont like the apply before PR merge workflow. It would be like deploying before merge
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
it can even have issues on non up to date branches