update to restic 0.13.1 & change registry
This commit is contained in:
parent
badd9f18c4
commit
70669bb608
@ -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
|
||||||
|
|
||||||
|
4
build.sh
4
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user