etesync / etesync-dav

This is a CalDAV and CardDAV adapter for EteSync
https://www.etesync.com
GNU General Public License v3.0
285 stars 45 forks source link

docker image for arch other than amd64 #215

Open contrun opened 3 years ago

contrun commented 3 years ago

Currently we only have docker image for linux/amd64 https://hub.docker.com/r/etesync/etesync-dav/tags?page=1&ordering=last_updated.

tasn commented 3 years ago

Can I build for multiple destinations from amd64? Or alternatively, any idea how to easily build the images from CI?

contrun commented 3 years ago

Yeah. We can build images for multi architectures by buildx. Here is an example https://github.com/victor-rds/docker-etebase/blob/master/.github/workflows/publish-alpine.yml . Here is the results https://hub.docker.com/r/victorrds/etesync/tags?page=1&ordering=last_updated

tasn commented 3 years ago

As always, @victor-rds to the rescue. :)

@victor-rds, what are all of those inline actions you have in the repo? How hard would it be to make etesync-dav also build for multiple platforms?

victor-rds commented 3 years ago

Just some helpers get-data is to generate multiple tag names for the same image, at the moment the :slim and :0.7.0-slim are the same image, the action just detect if the trigger event is a git tag and add versioned tags.

As for the get-labels is just for adding some labels, completely optional.

victor-rds commented 3 years ago

Just found this action that do almost the same thing as mine (and are better at) https://github.com/docker/metadata-action

tasn commented 3 years ago

Thanks! I'll try to figure it out and add it here.