We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 837f88d commit f21541cCopy full SHA for f21541c
dogfood/Dockerfile
@@ -176,8 +176,10 @@ RUN DOCKER_BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/
176
177
# See https://github.com/cli/cli/issues/6175#issuecomment-1235984381 for proof
178
# the apt repository is unreliable
179
-RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
180
- dpkg -i gh.deb
+RUN GH_CLI_VERSION=$(curl -s "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \
+ curl -L https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.deb -o gh.deb && \
181
+ dpkg -i gh.deb && \
182
+ rm gh.deb
183
184
# Install Lazygit
185
# See https://github.com/jesseduffield/lazygit#ubuntu
0 commit comments