From 5d6cf5266f085d128bc63f88bc6c26345ac29af4 Mon Sep 17 00:00:00 2001 From: Niven Date: Wed, 20 Dec 2023 13:58:56 +0800 Subject: [PATCH] Add install GH cli --- ain-builder/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ain-builder/Dockerfile b/ain-builder/Dockerfile index 6e3b0ac..d1bb459 100644 --- a/ain-builder/Dockerfile +++ b/ain-builder/Dockerfile @@ -43,3 +43,13 @@ RUN wget --progress=dot:giga -O - "https://apt.llvm.org/llvm.sh" | bash -s ${CLA # hadolint ignore=DL4001 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ --default-toolchain="${RUST_DEFAULT_VERSION}" -y + +RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \ + dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \ + chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg +RUN echo "deb [arch=$(dpkg --print-architecture) \ + signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] \ + https://cli.github.com/packages stable main" | \ + tee /etc/apt/sources.list.d/github-cli.list > /dev/null +RUN apt-get update \ + && apt-get install -y gh