#github-actions (2020-09)

Discussions related to GitHub Actions

2020-09-09

sheldonh avatar
sheldonh

Has anyone looked at getting the output from a terraform Cloud plan using github actions and posting as a comment , sorta like Atlantis does?

Vlad Ionescu (he/him) avatar
Vlad Ionescu (he/him)

https://github.com/kvrhdn/tfe-run is kind of going in that direction, but no output yet if I remember correctly

kvrhdn/tfe-run

The glue between GitHub Actions and Terraform Cloud - kvrhdn/tfe-run

1
sheldonh avatar
sheldonh

Looks like it can return outputs from the current terraform state. Might not be the same plan, but still useful for potentionally adding output to merged pull request perhaps.

sheldonh avatar
sheldonh

And one more question, should I combined all my linting tasks into a single workflow to improve performance/runtime? They don’t show up in the checks individually then. Should I keep them seperate in small pieces instead so each linting check shows up individually in the pull request?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

fwiw, we’re using the github superlinter

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

that kind of validates your approach of combining them

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
github/super-linter

Combination of multiple linters to install as a GitHub Action - github/super-linter

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

But we also have an example like this one: https://github.com/cloudposse/packages/pull/392

Convert to GitHub actions by osterman · Pull Request #392 · cloudposse/packages

what Drop codefresh pipeline for building docker image why Use github action instead for easier open source adoption

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
07:35:33 PM
1
sheldonh avatar
sheldonh

if you are ever curious here’s a guy that works at Microsoft that was inspired by the super linter but wanted to enhance it. This has some enhancements as linters are “structured objects” and more. Maybe you’ll find it interesting if you find you want more from the linter https://github.com/JustinGrote/Super-Duper-Linter

JustinGrote/Super-Duper-Linter

Inspired by github/super-linter, but using Powershell - JustinGrote/Super-Duper-Linter

2020-09-15

sarkis avatar

First time setting up github actions and I’m

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

ya, they are super convenient

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

what did you use it for?

sarkis avatar

Set up a full deploy pipeline (build, publish ECR, deploy to ECS)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

(btw, did you already start you new gig?)

sarkis avatar

nodejs app

sarkis avatar

Not yet, in between… so picked up some contracting, because I don’t know how to take a break

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

haha nice

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

(joining standup)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

how is the smoke where you are?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

btw, did you say you moved?

sarkis avatar

The one thing I need to figure out (outside scope of this channel) - what do I use to do an ECS deploy now (if github is down or if I want to revert to an older tag)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Haha how to do “ecs deploy” is a frequent topic

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

The general consensus for folks in our community is that using Terraform to do the deploy pretty much sucks.

1
1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

By in large, our customers never ask for any “DR” solution for CI/CD

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

My guess is your customer is too small to warrant an investment in DR for GitHub.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

If GitHub is down, then revert to WikiOps

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
  1. docker build...
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
  1. Run docker push
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

etc..

sarkis avatar

Yea that’s what I’m going to do but instead just create make targets for all that stuff.. so combination of wikiops + makefile to ease the burden

1
sarkis avatar

Yea, so I’m in Santa Clarita now … smoke has been awful last few days, it seems like it’s getting better

sarkis avatar

still like a 35m drive from you Erik - if you are still in the same area

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Yep! Still in Pasadena. But we are honestly itching to get out of the state.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Looking at Texas or Florida.

sarkis avatar

I can vouch for Miami

sarkis avatar

I guess both are going to have hurricane issues - but it’s not as bad as the news makes it most of the time

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Ya, that’s true - trading one catastrophe for the next.

2020-09-26

sheldonh avatar
sheldonh

https://octopus.com/blog/can-github-actions-replace-your-ci-server

Good article on a topic we’ve talked about here regarding github actions and many repos/org usage. With the pace of change though Im betting this might change in the next year with some better centralized controls. We’ll see

Can GitHub Actions replace your CI server? - Octopus Deploy

With the beta release of GitHub Actions now available, is it time to retire your in house CI server?

    keyboard_arrow_up