Commit bb34fa93 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(ci): use python3 instead of python in slim image

python:3.12-slim only has python3 binary; plain python fails with
command not found, breaking all .ansible_setup-based jobs.
parent 6fb94420
Loading
Loading
Loading
Loading
Loading
+10 −10
Changes for .gitlab-ci.yml: 10 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -17,9 +17,9 @@ cache:

.ansible_setup:
  before_script:
    - python --version
    - python -m pip install --upgrade pip
    - python -m pip install -r ansible/requirements.txt
    - python3 --version
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r ansible/requirements.txt
    - ansible-galaxy collection install -r ansible/requirements.yml

secret-scan:
@@ -60,14 +60,14 @@ syntax-check:
python-smoke:
  stage: test
  script:
    - python -m py_compile docker-local-deployment/prepare_kubeconfig.py
    - python3 -m py_compile docker-local-deployment/prepare_kubeconfig.py

docs:
  stage: docs
  script:
    - python -m pip install --upgrade pip
    - python -m pip install -r docs/requirements.txt
    - python -m mkdocs build --strict
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict
  artifacts:
    paths:
      - public
@@ -76,9 +76,9 @@ docs:
pages:
  stage: deploy
  script:
    - python -m pip install --upgrade pip
    - python -m pip install -r docs/requirements.txt
    - python -m mkdocs build --strict
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict
  artifacts:
    paths:
      - public