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

Build and push docker images using GitHub Actions #249

Merged
merged 10 commits into from
Aug 11, 2021

Conversation

reivilibre
Copy link
Contributor

Closes #245.

@reivilibre reivilibre changed the title First attempt at: Build and push docker images Build and push docker images using GitHub Actions Aug 10, 2021
Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
@reivilibre reivilibre requested a review from a team August 10, 2021 11:40
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

Looking great! Just a couple questions below.

Comment on lines 8 to 9
# uncomment this to enable all pushes to main
#branches: [ master, main ]
Copy link
Member

Choose a reason for hiding this comment

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

I think latest on our docker images always just points to the latest release. Not sure if we'd ever push on the main branch.

Though you mention re-enabling building docker images on main below - did we used to do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ripped off https://github.com/matrix-org/synapse/blob/develop/.github/workflows/docker.yml which seems like if you push to master on Synapse, you will get a new build.

I'm not really sure why this is, so I took it out for Sygnal.

Copy link
Member

Choose a reason for hiding this comment

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

Given we don't have anything other than releases on our dockerhub, I believe that that workflow both tests docker builds as well as publishes them (if the branch has an associated release tag).

This isn't necessary in Sygnal, as we already have a workflow for testing docker builds.

changelog.d/249.docker Outdated Show resolved Hide resolved

# The following line can be used to tag builds with the SHA hash of the commit.
# This would be useful if we wanted to re-enable building for all commits on `main`.
# type=sha,enable=true,priority=100,prefix=,suffix=,format=long
Copy link
Member

Choose a reason for hiding this comment

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

This is what would generate the following tag I assume?

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's right. Reckon I should just cut it out entirely?

Copy link
Member

Choose a reason for hiding this comment

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

yeah, I'd cut it.

Co-authored-by: Andrew Morgan <[email protected]>
anoadragon453
anoadragon453 previously approved these changes Aug 11, 2021
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

lgtm once the above is sorted.

@reivilibre reivilibre merged commit 6a32774 into main Aug 11, 2021
@reivilibre reivilibre deleted the rei/docker_build_push branch August 11, 2021 16:58
@bradtgmurray
Copy link
Contributor

Now that this is resolved, can we pretty please get a point release tagged and pushed? Looking forward to trying out the db-less sygnal release, but unfortunately the container isn't available on dockerhub. https://hub.docker.com/r/matrixdotorg/sygnal/tags

@reivilibre
Copy link
Contributor Author

Now that this is resolved, can we pretty please get a point release tagged and pushed? Looking forward to trying out the db-less sygnal release, but unfortunately the container isn't available on dockerhub. https://hub.docker.com/r/matrixdotorg/sygnal/tags

That's the plan, yup, sorry for taking my sweet time with it :)

@reivilibre
Copy link
Contributor Author

@bradtgmurray 0.10.1 released -- go and have fun! :D

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.

Docker build should run in CI
3 participants