Open figassis opened 3 years ago
Hey, thanks for mentioning. Feel free to add some clarification to the readme. In general the readme is always according to the current commig (e.g. master) which rarely is the latest release. So it's common in github.
As of today, the latest image on dockerhub is not up to date with the git repo ( late by 18 commits ) Hooks were added and documented in README recently. So you have two solutions :
I have issues setting up docker hub to always build an up to date container. I need to spend some time on it or build it with our company CI in future :)
If you need help pushing a Docker Container from GitHub Actions to DockerHub I could help you.
@dunklesToast I know it's a late reply but adding GitHub actions based build would be a Great addition. PR is welcome. I would then take care about adding the right credentials for my dockerhub account.
Done: https://github.com/lobaro/restic-backup-docker/pkgs/container/restic-backup-docker
Might need some further updates, it just worked with the github template :)
@niondir looks great! only thing i'd probably add would be a timeout
so if the action stalls for some reason it will be terminated after a specified period of time and won't burn useless ci minutes.
You can read more here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
Sounds reasonable, can you just add it? Else I will have a look some time.
I also noted that the config already contains some deprecated stuff. And the semantic versioning approach (adding a +restic 0-16-0) fails because docker does not support the plus character in tags... Something I already found somewhere else.
Hooks aren't available in the stable release, but readme makes no mention that they are only in the experimental / latest tag.