Skip to content

Commit c5f8eeb

Browse files
committed
install GitHub CLI
1 parent 9c4f24b commit c5f8eeb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ RUN apt update && \
139139
xvfb && \
140140
apt clean
141141

142+
# Install GitHub CLI
143+
RUN (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
144+
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
145+
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
146+
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
147+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
148+
&& sudo apt update \
149+
&& sudo apt install gh -y
150+
142151

143152
# Install Python packages
144153
RUN pip3 install --no-cache-dir \

0 commit comments

Comments
 (0)