Skip to content

Commit

Permalink
adding glcoud cli and kubectl (apache#27358)
Browse files Browse the repository at this point in the history
  • Loading branch information
volatilemolotov authored and aleksandr-dudko committed Jul 10, 2023
1 parent ce582cd commit 2efdf13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/gh-actions-self-hosted-runners/arc/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ RUN curl -OL https://github.com/cli/cli/releases/download/v2.31.0/gh_2.31.0_linu
tar -xvf gh_2.31.0_linux_amd64.tar.gz && \
rm gh_2.31.0_linux_amd64.tar.gz && \
mv gh_2.31.0_linux_amd64/bin/gh /usr/local/bin
#Install GCloud CLI and Kubectl
RUN curl -OL https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-linux-x86_64.tar.gz && \
tar -xvf google-cloud-sdk-367.0.0-linux-x86_64.tar.gz && \
rm google-cloud-sdk-367.0.0-linux-x86_64.tar.gz && \
mv google-cloud-sdk /usr/local/google-cloud-sdk && \
/usr/local/google-cloud-sdk/install.sh --quiet && \
/usr/local/google-cloud-sdk/bin/gcloud components install kubectl
ENV PATH="${PATH}:/usr/local/google-cloud-sdk/bin"

# Needed to transfer path addtitions to runner environment
RUN echo PATH=$PATH >> /runnertmp/.env
USER runner

0 comments on commit 2efdf13

Please sign in to comment.