Commit 0c7c7fbd authored by Richard Glosner's avatar Richard Glosner
Browse files

Merge branch 'COPY-ff082b12' into 'main'

[COPY]-internal-ops: add usage of our custom image for CI/CD

See merge request inject/inject-docs!103
parents ca7299cf 12144fd9
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
image: python:3.10-bullseye
image: $CI_REGISTRY_IMAGE/docs-builder:1.0

variables:
  GIT_SUBMODULE_STRATEGY: normal
@@ -6,7 +6,6 @@ variables:
  MAIN_BRANCH: "main"

stages:
  - setup
  - build
  - deploy
  - copy_to_main
@@ -15,24 +14,13 @@ default:
  tags:
    - inject

setup:
  stage: setup
  before_script:
    - apt-get update
  script:
    - echo "updating"

build:
  stage: build
  script:
    - pip install poetry==1.8.2
    - poetry install
    - poetry run mkdocs build --strict --verbose --site-dir public
  artifacts:
    paths:
      - public
  dependencies:
    - setup

pages:
  stage: deploy

Dockerfile

0 → 100644
+13 −0
Original line number Diff line number Diff line
FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*

RUN pip install poetry==1.8.2

COPY pyproject.toml poetry.lock ./

RUN poetry config virtualenvs.create false

RUN poetry install