Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile yq
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn authored and github-actions[bot] committed Aug 16, 2023
1 parent f08e86b commit cbef4b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
7 changes: 5 additions & 2 deletions runner/actions-runner-dind-rootless.ubuntu-22.04.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENV CHANNEL=stable
ARG DOCKER_COMPOSE_VERSION=v2.20.0
ARG DUMB_INIT_VERSION=1.2.5
ARG RUNNER_USER_UID=1001
ARG YQ_VERSION=v4.33.3

# Other arguments
ARG DEBUG=false
Expand Down Expand Up @@ -123,9 +124,11 @@ RUN if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "armv7" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_arm64"; \
elif [ "${BUILD_ARCH}" = "i386" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_386"; \
else [ "${BUILD_ARCH}" = "amd64" ]; then \
else \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"; \
fi
fi \
&& chmod +x /usr/bin/yq


# Runner user
RUN adduser --disabled-password --gecos "" --uid $RUNNER_USER_UID runner
Expand Down
7 changes: 5 additions & 2 deletions runner/actions-runner-dind.ubuntu-22.04.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG DOCKER_COMPOSE_VERSION=v2.20.0
ARG DUMB_INIT_VERSION=1.2.5
ARG RUNNER_USER_UID=1001
ARG DOCKER_GROUP_GID=121
ARG YQ_VERSION=v4.33.3

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
Expand Down Expand Up @@ -119,9 +120,11 @@ RUN if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "armv7" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_arm64"; \
elif [ "${BUILD_ARCH}" = "i386" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_386"; \
else [ "${BUILD_ARCH}" = "amd64" ]; then \
else \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"; \
fi
fi \
&& chmod +x /usr/bin/yq


# Runner user
RUN adduser --disabled-password --gecos "" --uid $RUNNER_USER_UID runner \
Expand Down
6 changes: 4 additions & 2 deletions runner/actions-runner.ubuntu-22.04.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG DOCKER_COMPOSE_VERSION=v2.20.0
ARG DUMB_INIT_VERSION=1.2.5
ARG RUNNER_USER_UID=1001
ARG DOCKER_GROUP_GID=121
ARG YQ_VERSION=v4.33.3

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
Expand Down Expand Up @@ -117,9 +118,10 @@ RUN if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "armv7" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_arm64"; \
elif [ "${BUILD_ARCH}" = "i386" ]; then \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_386"; \
else [ "${BUILD_ARCH}" = "amd64" ]; then \
else \
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"; \
fi
fi \
&& chmod +x /usr/bin/yq

RUN adduser --disabled-password --gecos "" --uid $RUNNER_USER_UID runner \
&& groupadd docker --gid $DOCKER_GROUP_GID \
Expand Down

0 comments on commit cbef4b5

Please sign in to comment.