Skip to content

Make latest image auto-update #18

@NorskNoobing

Description

@NorskNoobing

I'm interested in this project, but I'd want jotta-cli and dependencies to automatically update. This should likely be in the :latest image, and other versions of the docker image could be pinned to jotta-cli versions, like i.e. :0.16.126924. I've come up with a couple of different ways to get this done, but I'm unsure of which way that would be best.

  1. Build the image like you currently do, and add an apt-get update && apt-get upgrade -y to the entrypoint.sh. This makes it so the default image uses an old version of jotta-cli, but then upgrades at boot, which seems like a weird implementation to me but probably the easiest.
  2. Move both the dependency and jotta-cli download steps from the build process over to the entrypoint.sh, so jotta-cli gets re-downloaded every time you start the container. This would probably affect the boot times of the container, but I don't think it would be that bad.
  3. Create a GitHub action to check for a new jotta-cli version, then bump the version, build the image, and push it to docker.io. This would probably be the best implementation, and I know that it would work, because I'm currently running a GitHub action to push one of my images to dockerhub.

Any input would be greatly appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions