Skip to content

Commit fc97181

Browse files
Update GitHub CLI installation method in Dockerfiles for amd64 and arm64
1 parent 9817238 commit fc97181

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

images/devenv-main-amd64/.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ RUN apt install -y 1password-cli \
192192
# github
193193
##########################################
194194

195-
RUN gh --version;
195+
RUN iwr https://github.com/cli/cli/releases/download/v2.89.0/gh_2.89.0_linux_amd64.tar.gz -outfile gh.tar.gz \
196+
&& tar xzf gh.tar.gz gh_2.89.0_linux_amd64/bin/gh \
197+
&& mv gh_2.89.0_linux_amd64/bin/gh /usr/local/bin/gh \
198+
&& gh --version;
196199

197200
##########################################
198201
# gitlab

images/devenv-main-arm64/.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ RUN apt install -y 1password-cli \
194194
# github
195195
##########################################
196196

197-
RUN gh --version;
197+
RUN iwr https://github.com/cli/cli/releases/download/v2.89.0/gh_2.89.0_linux_arm64.tar.gz -outfile gh.tar.gz \
198+
&& tar xzf gh.tar.gz gh_2.89.0_linux_arm64/bin/gh \
199+
&& mv gh_2.89.0_linux_arm64/bin/gh /usr/local/bin/gh \
200+
&& gh --version;
198201

199202
##########################################
200203
# gitlab

0 commit comments

Comments
 (0)