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

Determine future of CI for PH repos #2016

Closed
ZoeLeBlanc opened this issue Feb 1, 2021 · 6 comments · Fixed by #2071
Closed

Determine future of CI for PH repos #2016

ZoeLeBlanc opened this issue Feb 1, 2021 · 6 comments · Fixed by #2071
Assignees

Comments

@ZoeLeBlanc
Copy link
Member

In November 2020, Travis CI (our current CI build operator) switched their pricing plan and we no longer had access to free CI through them. We've finally run out of credits on February 1 2021, and while we're hoping to get some access to free OSS credits through their support team, I want to start a ticket to determine if we need to move off of Travis CI to something that's free for our CI needs.

Mostly I'm concerned that Travis CI is requiring us to request OSS credits and that in the future they might revoke these or it might become a burden to have to request more every three months or so. Furthermore their pricing is a bit confusing but seems high for our needs (we would either have to pay $15 for 25000 credits or $69/month - tbh not sure how these pricing schemes interact).

So here are some blog posts from other OSS maintainers about their responses to Travis's shift.

One thing we might consider is looking into CI through Github Actions. I have zero knowledge or experience doing this, but it seems to be a popular and free alternative.

@ZoeLeBlanc ZoeLeBlanc self-assigned this Feb 1, 2021
@ZoeLeBlanc
Copy link
Member Author

So some good news... it looks like we should be able to do everything build wise with Github Actions and remove our dependency on Travis completely 🎉 !

I've got github actions working for the search-index repo and eventually want to have it that any push into master triggers that repo as well. But first I need to get this repo working with github actions. This will probably break everything for a bit but I'm confident I can get it working eventually 😅

@ZoeLeBlanc
Copy link
Member Author

ZoeLeBlanc commented Feb 4, 2021

Alrighty looks like we have a new system in place and are officially free of Travis 🍾 🥳 !

Before we close the issue here's some things we'll need to do to finalize the change:

  • Decide if we want to continue deploying Netlify through the service integration or on Github Actions (I'm leaning towards the former but want to double check with the @programminghistorian/technical-team )
    • If Github Actions, remove @drjwbaker bank details from Netlify and close account.
  • Comment the new build.yml files in jekyll and search-index
  • Remove the build.sh file (decided to keep it)
  • Remove the travis.yml file and delete travis from our service integrations (I would recommend we wait a few weeks to ensure that this new process is working)
  • Update our documentation in the wiki for Github Actions. Maybe we can add a retired technical documentation for the Travis specific content?
  • Write a blog post about our shift to Github Actions (to both record some of this process and as a resource for other jekyll sites since a lot of people will be hitting this issue in the next year) (decided to write this on my personal blog forthcoming)

Think that's it for now but excited that this actually worked 👍

@drjwbaker
Copy link
Member

Amazing job. I've added a sub-action above if you decide to ditch Netlify. I should add, I'm not suggesting you make a decision on grounds of cost. I merely want to ensure my bank details aren't lingering on a service we are no longer using :)

@walshbr
Copy link
Contributor

walshbr commented Feb 5, 2021

@ZoeLeBlanc - are you sure that deploying netlify in github actions doesn't require the bank account? It's still using netlify, after all, and it still spins up on their servers. Is it linked to our account on there at all? I assumed it was just using the same netlify account but poking it from a different direction.

@ZoeLeBlanc
Copy link
Member Author

@drjwbaker @walshbr sorry if that was confusing above, but yes we still need to pay for Netlify. In both approaches, everything is secure (if use Github Actions then we use repository secret tokens), but it really comes down to whether we prefer the UI of netlify or the UI of Github Actions. Also I think the netlify URLs are nicer if we deploy through their deploy-preview option, which might be available through Github Actions but I never saw it as an option.

So long story short we'll probably stay as is! Sorry again for the confusion!

@drjwbaker
Copy link
Member

Thanks for explaining. No confusion here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants