Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions CI Pipeline Baseline #94

Merged
merged 5 commits into from
Oct 7, 2021
Merged

GitHub Actions CI Pipeline Baseline #94

merged 5 commits into from
Oct 7, 2021

Conversation

RothAndrew
Copy link
Member

@RothAndrew RothAndrew commented Oct 7, 2021

What/Why

  • Implement a CI pipeline as ChatOps slash commands. For several reasons, this is much safer and more economical than always running pipelines on new commit pushes
    • Saves on the free CI minutes we get from GitHub
    • Will save money on AWS usage charges once we get the ephemeral E2E tests integrated
    • Protects our secrets like tokens and AWS creds from automatically being used on new PRs from people we don't know

This initial PR sets up the framework, and includes a couple of test runs as a proof of concept.

  • /test ping: Adds a new status check that just says "pong"
  • /test hello: PoC of a fully implemented test run, just runs echo "Hello World!" for now.
  • /test quote: Adds a new status check that outputs a famous quote
  • /test all: Runs all of the above except ping

You can chain them together too: /test ping hello quote

None of this will work in this PR, since GitHub Actions only uses actions in the trunk branch.

A huge amount of work has been copied from CloudPosse's "Actions" repo: https://github.com/cloudposse/actions
Big shout out to all the great work from @osterman and the rest of the CP team.

Testable PoC here: defenseunicorns/slash-command-dispatch-test#4

@RothAndrew RothAndrew mentioned this pull request Oct 7, 2021
@RothAndrew RothAndrew self-assigned this Oct 7, 2021
Copy link
Member

@jeff-mccoy jeff-mccoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's functional LGTM, but admittedly I need to learn more about this to be confident to maintain it. Approve to prevent blocking, I'll catch up this weekend on how this all works.

@jeff-mccoy
Copy link
Member

please squash and merge

@RothAndrew
Copy link
Member Author

Since it's functional LGTM, but admittedly I need to learn more about this to be confident to maintain it. Approve to prevent blocking, I'll catch up this weekend on how this all works.

I'm happy to pair with you whenever to walk through it. I'm new to GH Actions as well but I've been aware this functionality exists for a couple of years now due to my involvement in the Cloud Posse Office Hours group, just haven't tried using it until now.

@RothAndrew RothAndrew merged commit 5d7da4e into master Oct 7, 2021
@RothAndrew RothAndrew deleted the feature/pipeline branch October 7, 2021 15:53
@RothAndrew RothAndrew changed the title Pipeline Take 2 GitHub Actions CI Pipeline Baseline Oct 7, 2021
jeff-mccoy pushed a commit that referenced this pull request Feb 8, 2022
Signed-off-by: Jeff McCoy <code@jeffm.us>
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
Signed-off-by: Jeff McCoy <code@jeffm.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants