#release-engineering - November 2019

November 2019
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Very cool GitHub action
Sharanya
Sharanyaalmost 7 years ago
Need a suggestion : We are hosting a React website on S3, deployed through Jenkins. We have a story to set the site’s environment variables at deployment time (e.g. APIs URL, Vertex Cloud Auth Server , Redirection URL, etc.) but wanted to ping you guys to see if you are doing something like this today
MattyB
MattyBalmost 7 years ago
Anyone have trouble finding the line with abstraction in Jenkins pipeline libs? I forked someone's codebase at worked and played around with it. While it works, you have to drudge through documentation that's formatted for github which is terrible compared to typical code documentation. You (or someone) end up trying to write reusable code but end up with a bunch of one-offs (multiple docker run stages). You're forced to figure out all the variables that are set by hoping the person that wrote the documentation didn't miss anything, so you end up looking through the code to verify. I think with my current project I'm going to leave most of the logic in our pipeline.yaml and let it tell the story of how our build works instead of the Jenkinsfile. I'm pretty sure I could write a book about it or find someone else that's already gone through my grief. Just venting a bit too 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@MattyB today at #office-hours I want to ask more about people’s experience with Jenkins and #kubernetes
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Join us if free!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
My motivation is we are starting a Jenkins project next week.
MattyB
MattyBalmost 7 years ago
Thanks for the invite. Just registered.
Sergey
Sergeyalmost 7 years ago
That is great @Erik Osterman (Cloud Posse)
Jenkins is a swiss knife in the CI/CD world and it must be in SweetOps team's backpack
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
haha, yea, it was and then it wasn't 😃 it's a love/hate relationship.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
but seeing as how many companies still use it, I totally agree!
Sergey
Sergeyalmost 7 years ago
yea, but in most cases Jenkins is very redundant for usual operations - build couple images and push them to registry. For this purpose I choose "free" CI tools linke Drone, GitlabCI and etc. Or if we need self managed solution - GitLab CI
Sergey
Sergeyalmost 7 years ago
But if we need some advanced logic in or pipelines - Jenkins is that we need
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
- auto update packages (open a PR every night)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
- auto label PR with each package updated (great for mono repos)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
- auto clean up branches on merge
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
- auto assign PR for review
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
(all github actions)
loren
lorenalmost 7 years ago
anyone else trying mergify? started using it to auto-approve/merge prs that dependabot creates, with conditions that the required status checks pass... https://doc.mergify.io/
loren
lorenalmost 7 years ago

pull_request_rules:
  - name: auto-approve dependabot pull requests
    conditions:
      - author~=dependabot\[bot\]|dependabot-preview\[bot\]
      - status-success=continuous-integration/appveyor/pr
      - status-success=continuous-integration/travis-ci/pr
    actions:
      review:
        type: APPROVE

  - name: auto-merge dependabot pull requests
    conditions:
      - author~=dependabot\[bot\]|dependabot-preview\[bot\]
      - "#approved-reviews-by>=1"
    actions:
      merge:
        method: merge
loren
lorenalmost 7 years ago
certainly some overlap in what it does and github actions
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
No, but have somethings bookmarked to achieve the same thing with actions
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Want to use actions :-)
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 7 years ago
super, waiting to see what they will have in the end
Chris Fowles
Chris Fowlesalmost 7 years ago
yeh - i'm getting a bit annoyed at the "we're going to work on a thing" announcements
Chris Fowles
Chris Fowlesalmost 7 years ago(edited)
it's becoming common
PePe Amengual
PePe Amengualalmost 7 years ago
I was going to try , https://github.com/cloudposse/terraform-aws-ecs-atlantis, is there anything I should know about using this repo?
PePe Amengual
PePe Amengualalmost 7 years ago
we want to run atlantis in ECS
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We assume you BYO Docker container
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We use geodesic
PePe Amengual
PePe Amengualalmost 7 years ago
BYO= ?
PePe Amengual
PePe Amengualalmost 7 years ago
build your own ?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Bring your own
PePe Amengual
PePe Amengualalmost 7 years ago(edited)
or I can use the one in docker registry?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Perhaps but untested
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We have a more opinionated approach where by we deploy Atlantis in each AWS account we want to manage
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
And have a one to one correlation between AWS accounts and GitHub repos
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
This ensures webhooks and repos and accounts are all aligned
PePe Amengual
PePe Amengualalmost 7 years ago
well we want the same
PePe Amengual
PePe Amengualalmost 7 years ago
each account with it’s own atlantis
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
🤘
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Give it a shot
PePe Amengual
PePe Amengualalmost 7 years ago
but you have multiples repos per account
PePe Amengual
PePe Amengualalmost 7 years ago
I guess
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Join us for #office-hours if you get stuck
PePe Amengual
PePe Amengualalmost 7 years ago
I have a strip-down version of the ecs-web-app module that we use for all ECS related tasks
PePe Amengual
PePe Amengualalmost 7 years ago
that is very similar to what is on that repo
PePe Amengual
PePe Amengualalmost 7 years ago
but this
PePe Amengual
PePe Amengualalmost 7 years ago
is kinda weird
PePe Amengual
PePe Amengualalmost 7 years ago
you are only allowing https/http and 53 out from atlantis ?
Igor Rodionov
Igor Rodionovalmost 7 years ago
Have anyone try https://www.gocd.org/ ?
Igor
Igoralmost 7 years ago
CircleCi seems to be having outages on weekly basis. Is this common for other CI/CD platforms?
Steven
Stevenalmost 7 years ago
Never used to happen. Haven't used it much in the last year. Suspect they may be going through some growing pains
Chris Fowles
Chris Fowlesalmost 7 years ago
We've been pretty happy with BuildKite
Darren Cunningham
Darren Cunninghamalmost 7 years ago(edited)
I'm very happy with Codefresh, when their macOS supports comes out of beta I'm planning to move our react native app over and shutdown our CircleCI account.
Amelia
Ameliaalmost 7 years ago
I don't suppose anybody has gotten these Jenkins automated upgrades working with the Docker image? We have them in our current version, but I'm looking in to moving Jenkins off of Windows and want to make sure we keep the feature.

https://wiki.jenkins.io/display/JENKINS/Automated+Upgrade
Amelia
Ameliaalmost 7 years ago
I wouldn't be shocked if I were misinterpreting this document to some extent.
Brij S
Brij Salmost 7 years ago
for anyone who has used github actions, if I was to create a git action that had
on:
  push:
    branches:
      - master

would you think this runs when a PR is merged to master?
Brij S
Brij Salmost 7 years ago
I basically want to run a workflow when master has a change
Vlad Ionescu (he/him)
Vlad Ionescu (he/him)almost 7 years ago
You can test it by creating a PR to a dummy branch.
Vlad Ionescu (he/him)
Vlad Ionescu (he/him)almost 7 years ago
But yeah, it will run when a PR is merged to master