-
Notifications
You must be signed in to change notification settings - Fork 212
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
chore(ci): skip build & deploy of content-server docker image for PRs #2620
chore(ci): skip build & deploy of content-server docker image for PRs #2620
Conversation
Starting this as a draft to see how CircleCI likes it. Main thing here is to try saving the 6-8 minutes of building a Docker image for content-server that never gets used for tests or pushed anywhere. |
Seems to work as expected on CircleCI - test-content-server is run, but build-and-deploy-content-server is not. However, I'm not entirely sure how to check its behavior for master branch and release tags without merging it. Maybe I can try hooking my personal fork up to CircleCI and merge to master there. |
Turned on CircleCI for my personal fork of FxA and merged to master there. Good news is that the build-and-deploy job ran there. Bad news is that the deploy part did nothing, because my CircleCI setup doesn't have the credentials to actually try a push to Docker Hub. But I think that should work in the main repo. Better news is that the build step took 10 minutes - which is roughly the sort of time that this PR should shave off CI runs for PRs in general. |
@lmorchard please make sure that we can still deploy to docker using Line 11 in 8086820
|
- split build & deploy out of test-content-server - should still build & deploy for master branch and tagged releases fixes #2526
Hmm, actually - I hadn't heard of this But also, maybe I can push to one of those kinds of branches on the mozilla/fxa repo to test things out before actually going for a merge to master. Edit: I tried it - hope I didn't blow anything up - but it seems to work with a |
Going to open this up for review. Seems like it's working, but could use some more eyes to surface anything else I might break like pushing to special branches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Going to merge... if this breaks anything, it should be pretty easy to revert 😅 |
TL;DR: This can possibly shave 10 whole minutes off CI times.
fixes #2526