Skip to content

Commit 3295baf

Browse files
committed
install newer gh cli
1 parent ed72b28 commit 3295baf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1313
&& pecl install redis zip \
1414
&& docker-php-ext-enable redis zip \
1515
&& apt-get install -y mariadb-client redis-tools \
16-
&& apt-get install -y gh npm libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
16+
&& apt-get install -y npm libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
1717
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
1818

1919
# Configure PHP, make memory_limit and upload_max_filesize match Pantheon
@@ -52,3 +52,6 @@ RUN curl -sL $(curl -s https://api.github.com/repos/atuinsh/atuin/releases/lates
5252
# Install the jira-cli precompiled binary for our cpu architecture:
5353
# FIXME use latest release instead, see atuin example above
5454
RUN curl -sL https://github.com/ankitpokhrel/jira-cli/releases/download/v1.5.1/jira_1.5.1_linux_`uname -m | sed s/aarch64/arm64/`.tar.gz | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local,' '*/bin/jira'
55+
56+
# Our base image has an ancient version of gh cli in apt, so we download the latest version instead
57+
RUN curl -sL $(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[] | select(.name | endswith("_linux_'`uname -m | sed s/x86_64/amd64/`'.tar.gz")) | .browser_download_url') | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local,' '*/gh'

0 commit comments

Comments
 (0)