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

Automate docker hub update #25

Open
NicolasCARPi opened this issue Oct 12, 2024 · 2 comments
Open

Automate docker hub update #25

NicolasCARPi opened this issue Oct 12, 2024 · 2 comments

Comments

@NicolasCARPi
Copy link
Contributor

Currently the Action can only be manually triggered. It would be best to automatically publish a :latest on all commits to master and tagged versions when you publish tags/releases (+ optionally a stable tag for the stable releases).

@manulera
Copy link
Owner

Hi @NicolasCARPi I did this today.

The way it works is:

  • Whenever a push is made to master in the backend or frontend repository, there is a push to dockerhub with latest
    • For the frontend repository, and extra latest-syc-base is also published, with the /syc/ backend settings.
  • When a release is made from the backend / frontend, an image tagged with the version number is published, as well as a prod tagged image.
    • In the frontend the syc-base versions are also included
  • This means that:
    • latest: latest master
    • prod: latest release

In this repository, for the image that combines both frontend and backend, it's similar but I will still trigger the releases by hand, just to make sure that both frontend and backend are in sync with each other, so you can use latest and prod as before, as well as the release tag. Also, the release contains info of the release tags of backend and frontend.

A bit confusing admittedly but I think the tags in docker-hub are self-explaining:

https://hub.docker.com/repository/docker/manulera/shareyourcloning/tags

@manulera
Copy link
Owner

You can also access the version in the app now:

https://shareyourcloning.org/ At about > App version

And in the API:

https://shareyourcloning.api.genestorian.org/version

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

No branches or pull requests

2 participants