Skip to content
Snippets Groups Projects
Commit 5096e37d authored by nimrod's avatar nimrod
Browse files

Add pre-commit image.

parent 25f6d30e
No related branches found
No related tags found
No related merge requests found
......@@ -106,3 +106,20 @@ push-k8s:
needs:
- job: build-k8s
artifacts: true
# pre-commit image:
build-pre-commit:
extends: .container-build
variables:
CONTEXT: images/pre-commit
push-pre-commit:
extends: .container-push
variables:
CONTEXT: images/pre-commit
IMAGE: ci-images
TAG: pre-commit
needs:
- job: build-pre-commit
artifacts: true
*
FROM buildpack-deps:bullseye
# hadolint ignore=DL3008,DL3013
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
docker.io \
python3-dev \
python3-pip \
python3-setuptools \
python3-venv \
&& \
python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir \
docker-compose \
pipenv \
poetry \
pre_commit \
tox \
&& \
rm -rf /root/.cache /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment