add versions to rsync

This commit is contained in:
2021-09-08 12:40:36 -04:00
parent 2e55cd9e11
commit 3d23442796
2 changed files with 3 additions and 3 deletions

View File

@@ -13,8 +13,8 @@ pipeline:
insecure: true insecure: true
context: rsync/ context: rsync/
dockerfile: rsync/Dockerfile dockerfile: rsync/Dockerfile
environment: build_args:
- RELEASE = ${RELEASE} - RELEASE=${RELEASE}
when: when:
path: 'rsync/*' path: 'rsync/*'

View File

@@ -3,7 +3,7 @@ FROM alpine:latest
ARG RELEASE=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 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 echo $RELEASE
RUN wget -P /tmp https://github.com/benbjohnson/litestream/releases/download/${RELEASE}/litestream-${RELEASE}-linux-arm7-static.tar.gz && \ 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 tar -C /usr/local/bin/ -xzvf /tmp/litestream-${RELEASE}-linux-arm7-static.tar.gz