add versions to rsync

This commit is contained in:
2021-09-08 12:38:32 -04:00
parent 33d4f3539d
commit 2e55cd9e11
2 changed files with 2 additions and 3 deletions

View File

@@ -15,8 +15,6 @@ pipeline:
dockerfile: rsync/Dockerfile
environment:
- RELEASE = ${RELEASE}
build_args_from_env:
- RELEASE
when:
path: 'rsync/*'

View File

@@ -1,8 +1,9 @@
FROM alpine:latest
ARG RELEASE=latest
RUN apk add --no-cache --virtual .run-deps rsync openssh tzdata curl ca-certificates flock bash tar wget && rm -rf /var/cache/apk/*
RUN RUN echo $RELEASE
RUN wget -P /tmp https://github.com/benbjohnson/litestream/releases/download/${RELEASE}/litestream-${RELEASE}-linux-arm7-static.tar.gz && \
tar -C /usr/local/bin/ -xzvf /tmp/litestream-${RELEASE}-linux-arm7-static.tar.gz