From 082a74ef451f218a047ee82e0aebe62308e8091d Mon Sep 17 00:00:00 2001 From: Mark Harrison Date: Wed, 28 Aug 2024 16:55:53 +0100 Subject: [PATCH] Remove sudo and add to readme --- README.md | 20 ++++++++++++++++++++ github-cli/linux-amd64/Dockerfile | 2 +- github-cli/linux-arm64/Dockerfile | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1fe444..adbb2d6 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ The following images are built from this repository: - [Terraform workertools](#terraform-workertools) (`octopuslabs/terraform-workertools`) - [HashiCorp Vault workertools](#vault-workertools) (`octopuslabs/vault-workertools`) - [ArgoCD workertools](#argocd-workertools) (`octopuslabs/argocd-workertools`) +- [GitHub CLI workertools](#github-workertools) (`octopuslabs/github-workertools`) ### Base workertools @@ -207,6 +208,25 @@ A new image is built each time a new version of ArgoCD CLI is detected. The vers You can retrieve a list of all available tags on [DockerHub](https://hub.docker.com/repository/docker/octopuslabs/argocd-workertools/tags). + +### GitHub CLI workertools + +This image contains all the necessary tooling to run the [GitHub CLI](https://github.com/cli/cli) with Octopus Deploy: + +- Git +- GitHub CLI + +A new image is built each time a new version of the GitHub CLI is detected. The version numbers will be based on the version of the GitHub CLI. + +> Note: No windows/amd64 platform support is provided for this image. + +#### Tags + +- `octopuslabs/github-workertools:latest` +- `octopuslabs/github-workertools:VERSION` + +You can retrieve a list of all available tags on [DockerHub](https://hub.docker.com/repository/docker/octopuslabs/github-workertools/tags). + ## Support If you find a bug or encounter a problem with these images, please raise an [issue](https://github.com/OctopusDeployLabs/workertools/issues). diff --git a/github-cli/linux-amd64/Dockerfile b/github-cli/linux-amd64/Dockerfile index 7a63bd3..556a7e1 100644 --- a/github-cli/linux-amd64/Dockerfile +++ b/github-cli/linux-amd64/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y git # Install GitHub CLI RUN mkdir -p -m 755 /etc/apt/keyrings \ - && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ + && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && apt update \ diff --git a/github-cli/linux-arm64/Dockerfile b/github-cli/linux-arm64/Dockerfile index da873f4..d97d554 100644 --- a/github-cli/linux-arm64/Dockerfile +++ b/github-cli/linux-arm64/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y git # Install GitHub CLI RUN mkdir -p -m 755 /etc/apt/keyrings \ - && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ + && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && apt update \