-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Docker build from tagged branches #2858
Comments
Maybe this would also imply.. that we get rid of |
CircleCI in theory should support tags now (Aug 1). https://circleci.com/changelog/#circleci-2-0-git-tags-support `CircleCI will not run a job for a Git tag unless a tags filter is specified. |
@jshimko any update here? |
The short answer is we either need to make sure to add the version tag to the merge commit once it's on the master branch or we just manually build/push the image after the fact like I did last time. Either is an easy solution until I have time to refactor the CI config to use all of their new features. The longer answer is I need to refactor the CI config to make use of Circle's new workflows feature (which supports parallel jobs, tag regex's, etc.). I have that partially finished on a local branch, but I'm trying to get unburied with other more pressing blockers before I go down that rabbit hole for half a day. |
@aaronjudd is this a blocker for our |
From @jshimko
|
@impactmass Let's discuss, this might be a project you could take a look at... |
I have set up / worked on a few apps using circle workflows. I am not yet up to speed on how the current reaction build is set up, but I might be of some minimal help if you get stuck on the workflows config |
Started working on this with help from @aldeed. Approach is to:
|
@aaronjudd @jshimko Can you think of any reason not to update the image for the "test" job to:
The |
That seems reasonable to me. |
@impactmass FYI #3629 may help out with this ticket. |
Thanks @spencern . #3629 actually solves the real problem of building from tagged branches. So far, my work on #3618 will bring:
I merged #3629 into #3618 and testing that everything works, then will open for review |
@impactmass @ticean what's our status here? Can this be closed? |
Yep. This can be closed now. We're pushing all builds to Docker Hub. |
@ticean I had worked with @impactmass on converting to Circle workflows as part of this, and that still hasn't been merged. Is that tracked elsewhere? Also, more importantly, the config still is not running |
@aldeed re: earlier work of updating the reaction repo to Circle workflows, it is being tracked in another issue. The plan is to have a similar Circle config across all our repos. So I'll be making some changes to the earlier work before it gets merged (PR should come in for that tomorrow). |
When creating a tagged release (commit to master, making a new release using GitHub) our CI workflow should automatically push the successful build to Docker Hub. I really don't think there is any need to have this logic be special to
master
or any other branch. Just any time we release/tag a branch we should build, push and label the image based on the tag name. This might not be great if we're pullinglatest
in production, but that's not something I'd suggest we/people rely on anyways.. ie usinglatest
is akin to always living in alpha state.The text was updated successfully, but these errors were encountered: