File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed
Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine AS cloner
2+
3+ ARG VERSION
4+ ARG TARGETARCH
5+
6+ RUN apk add --update --no-cache wget && \
7+ case "$TARGETARCH" in \
8+ *amd64 | */amd64/*) PLATFORM=x86_64 ;; \
9+ *arm64 | */arm64/* ) PLATFORM=aarch64 ;; \
10+ * ) echo "Unexpected TARGETARCH '$TARGETARCH'" >&2; exit 1 ;; \
11+ esac && \
12+ wget -O /tmp/trailerfin_rust.tar.gz https://github.com/iPromKnight/trailerfin_rust/releases/download/v$VERSION/trailerfin_rust-${PLATFORM}-unknown-linux-musl.tar.gz && \
13+ tar -xzf /tmp/trailerfin_rust.tar.gz -C /usr/local/bin && \
14+ chmod +x /usr/local/bin/trailerfin_rust && \
15+ rm -rf /tmp/trailerfin_rust*
16+
17+ FROM --platform=$TARGETARCH gcr.io/distroless/static-debian12:latest
18+
19+ LABEL org.opencontainers.image.source = "https://github.com/ipromknight/trailerfin_rust"
20+ LABEL org.opencontainers.image.based_on = "https://github.com/Pukabyte/trailerfin"
21+ LABEL org.opencontainers.image.title = "trailerfin_rust"
22+ LABEL org.opencontainers.image.authors = "ipromknight"
23+ LABEL org.opencontainers.image.documentation = "https://github.com/ipromknight/trailerfin_rust/blob/main/README.md"
24+
25+ COPY --from=cloner /usr/local/bin/trailerfin_rust /usr/bin/trailerfin_rust
26+
27+ ENTRYPOINT ["/usr/bin/trailerfin_rust" ]
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ AUTH=" Authorization: token ${GH_PAT:- ${TOKEN:- } } "
3+ version=$( curl -Lsf -H " $AUTH " https://api.github.com/repos/ipromknight/trailerfin_rust/releases/latest | jq --raw-output ' . | .tag_name' )
4+ version=" ${version#* v} "
5+ printf " %s" " ${version} "
Original file line number Diff line number Diff line change 1+ {
2+ "app" : " trailerfin_rust" ,
3+ "base" : false ,
4+ "channels" : [
5+ {
6+ "name" : " main" ,
7+ "platforms" : [
8+ " linux/amd64" ,
9+ " linux/arm64"
10+ ],
11+ "stable" : true ,
12+ "tests" : {
13+ "enabled" : false ,
14+ "type" : " cli"
15+ }
16+ }
17+ ]
18+ }
You can’t perform that action at this time.
0 commit comments