Infra
This commit is contained in:
1 parent
ea1afaf833
commit
e0db317146
12 files changed
+444
-56
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Railway's CLI, pinned. Their own image is x86-only; the release binaries are
|
||||
# static, so this just fetches the one for the platform being built.
|
||||
FROM alpine:3.22
|
||||
|
||||
ARG VERSION=5.57.12
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN case "$TARGETARCH" in \
|
||||
arm64) triple=aarch64-unknown-linux-musl ;; \
|
||||
amd64) triple=x86_64-unknown-linux-musl ;; \
|
||||
*) echo "unsupported: $TARGETARCH" >&2; exit 1 ;; \
|
||||
esac \
|
||||
&& wget -qO- "https://github.com/railwayapp/cli/releases/download/v$VERSION/railway-v$VERSION-$triple.tar.gz" \
|
||||
| tar -xz -C /usr/local/bin railway \
|
||||
&& railway --version
|
||||
|
||||
ENTRYPOINT ["railway"]
|
||||
Reference in new issue
Block a user