Add yq to the image
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Nikolai Rodionov 2024-05-07 14:16:57 +02:00
parent 82562efb80
commit a45b06d6fe
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
1 changed files with 5 additions and 0 deletions

View File

@ -16,11 +16,16 @@ RUN mkdir -p /out
RUN dudo -l "https://github.com/getsops/sops/releases/download/{{ version }}/sops-{{ version }}.{{ os }}.{{ arch }}" -d /out/sops -p $SOPS_VERSION
RUN chmod +x /out/sops
FROM mikefarah/yq as yq
WORKDIR /out
RUN cp $(which yq) .
FROM python:3.12.2-slim-bullseye AS build-image
COPY --from=compile-image /opt/venv /opt/venv
RUN apt-get update && \
apt-get install age ssh git -y
COPY . /src
COPY --from=yq /out/yq /usr/bin/yq
COPY --from=dudo /out/sops /usr/bin/sops
ENV PATH="/opt/venv/bin:$PATH"
RUN ansible-galaxy install -r /src/requirements.yml --force