Skip to content

Commit 3b6f6b4

Browse files
committed
feat: ensure we install latest rclone - rclone manager wont change
1 parent 3152364 commit 3b6f6b4

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

apps/rclone-manager/Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ ARG VERSION
55
RUN apk update && apk upgrade && \
66
apk add --no-cache git
77

8-
RUN git clone -b $VERSION https://github.com/iPromKnight/rclone-manager /source
8+
RUN git clone -b main https://github.com/iPromKnight/rclone-manager /source
99

10-
FROM --platform=linux/amd64 golang:1.24-alpine AS builder
10+
FROM golang:1.24-alpine AS builder
1111

1212
RUN apk add --no-cache git
1313

@@ -21,11 +21,18 @@ RUN go build -o rclone-manager ./cmd/main.go
2121

2222
FROM ghcr.io/ipromknight/alpine:rolling
2323

24+
ARG VERSION
25+
2426
RUN apk add --no-cache \
2527
fuse3 \
2628
curl \
27-
rclone \
28-
su-exec
29+
su-exec \
30+
unzip
31+
32+
RUN curl -Lso /tmp/rclone.zip "https://github.com/rclone/rclone/releases/download/v${VERSION}/rclone-v${VERSION}-linux-amd64.zip" && \
33+
unzip /tmp/rclone.zip "rclone-v${VERSION}-linux-amd64/rclone" -d /tmp && \
34+
install -m 0755 /tmp/rclone-v${VERSION}-linux-amd64/rclone /usr/local/bin/rclone && \
35+
rm -rf /tmp/rclone*
2936

3037
RUN mkdir -p /data
3138

apps/rclone-manager/ci/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
file:
3+
/usr/local/bin/rclone-manager:
4+
exists: true
5+
/usr/local/bin/rclone:
6+
exists: true

apps/rclone-manager/ci/latest.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env bash
2-
version="main"
3-
printf "%s" "${version}"
2+
version=$(curl -Lsf https://api.github.com/repos/rclone/rclone/releases/latest | jq --raw-output '. | .tag_name')
3+
version="${version#*v}"
4+
printf "%s" "${version}"

0 commit comments

Comments
 (0)