Skip to content

Commit b005ea3

Browse files
committed
feat: trailerfin_rust
1 parent 41f644c commit b005ea3

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

apps/trailerfin_rust/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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"]

apps/trailerfin_rust/ci/latest.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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}"

apps/trailerfin_rust/metadata.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

0 commit comments

Comments
 (0)