Skip to content

Commit

Permalink
chore: Add gh CLI to image
Browse files Browse the repository at this point in the history
Needed for the create-github-release task in the release-service-catalog

Signed-off-by: Ernesto González <[email protected]>
  • Loading branch information
ernesgonzalez33 committed Nov 4, 2023
1 parent 0bff440 commit 21d1853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ ARG KUBECTL_VERSION=1.27.2
ARG OCP_VERSION=4.14.0-rc.5
ARG YQ_VERSION=4.34.1
ARG GLAB_VERSION=1.31.0
ARG GH_VERSION=2.32.1

RUN curl -L https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 -o /usr/bin/yq &&\
curl -L https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/bin/kubectl &&\
curl -L https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${OCP_VERSION}/opm-linux.tar.gz |tar -C /usr/bin -xzf - &&\
curl -L https://gitlab.com/gitlab-org/cli/-/releases/v${GLAB_VERSION}/downloads/glab_${GLAB_VERSION}_Linux_x86_64.tar.gz | tar -C /usr -xzf - bin/glab &&\
chmod +x /usr/bin/{yq,kubectl,opm,glab} &&\
curl -L https://github.com/cli/cli/releases/download/v2.32.1/gh_${GH_VERSION}_linux_amd64.tar.gz -o gh_${GH_VERSION}_linux_amd64.tar.gz && tar -xzf gh_${GH_VERSION}_linux_amd64.tar.gz && mv gh_${GH_VERSION}_linux_amd64/bin/gh /usr/bin/gh &&\
chmod +x /usr/bin/{yq,kubectl,opm,glab,gh} &&\
rpm -ivh https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}/cosign-${COSIGN_VERSION}.x86_64.rpm

RUN dnf -y --setopt=tsflags=nodocs install \
Expand Down

0 comments on commit 21d1853

Please sign in to comment.