Skip to content

Commit

Permalink
feat: Add yq tool to support YAML processing (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Coufal <[email protected]>
  • Loading branch information
tumido authored Mar 2, 2021
1 parent 9285345 commit f4a70ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG SOPS_VERSION="v3.6.1"
ARG HELM_VERSION="v3.4.1"
ARG HELM_SECRETS_VERSION="3.4.1"
ARG CONFTEST_VERSION="0.21.0"
ARG YQ_VERSION="v4.6.1"

# Copy ksops and kustomize from builder
COPY --from=ksops-builder /go/bin/kustomize /usr/local/bin/kustomize
Expand All @@ -27,7 +28,10 @@ RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf && \
helm plugin install https://github.com/jkroepke/helm-secrets --version=$HELM_SECRETS_VERSION && \
# Install conftest
curl -L https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz | tar -xzf - -C /usr/local/bin && \
chmod +x /usr/local/bin/conftest
chmod +x /usr/local/bin/conftest && \
# Install yq
curl -o /usr/local/bin/yq -L https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 && \
chmod +x /usr/local/bin/yq

COPY scripts/* /usr/local/bin/

Expand Down

0 comments on commit f4a70ad

Please sign in to comment.