Skip to content

Commit be7ac3d

Browse files
fix hub build (#1) (#520)
1 parent 0fa14e3 commit be7ac3d

File tree

1 file changed

+3
-2
lines changed
  • workflows/github/versions/0.0.5/images/create-pr

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
FROM debian:stable-slim
2-
RUN apt update -y && apt install git curl hub=2.14.2~ds1-1+b4 -y && rm -rf /var/lib/apt/lists/*
1+
FROM --platform=$BUILDPLATFORM debian:stable-slim
2+
ARG TARGETARCH=amd64
3+
RUN apt update -y && apt install git curl -y && curl -L "https://github.com/mislav/hub/releases/download/v2.14.2/hub-linux-${TARGETARCH}-2.14.2.tgz" --output /tmp/hub.tar.gz && tar -xvf /tmp/hub.tar.gz -C /tmp && mv /tmp/hub-linux-${TARGETARCH}-2.14.2/bin/hub /usr/local/bin/ && rm -rf /tmp/hub* && rm -rf /var/lib/apt/lists/*
34
ENTRYPOINT hub

0 commit comments

Comments
 (0)