update to restic 0.13.1 & change registry

This commit is contained in:
Laurent Le Houerou 2022-05-12 09:37:05 +04:00
parent badd9f18c4
commit 70669bb608
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certific
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
# Get restic executable # Get restic executable
ENV RESTIC_VERSION=0.12.0 ENV RESTIC_VERSION=0.13.1
ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 / ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 /
RUN bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic RUN bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
docker build -t llehouerou/restic-backup . docker build -t registry.lehouerou.net/restic-backup .
rc=$? rc=$?
if [[ ${rc} == 0 ]]; then if [[ ${rc} == 0 ]]; then
docker push llehouerou/restic-backup docker push registry.lehouerou.net/restic-backup
fi fi