Loading .gitlab-ci.yml +25 −11 Original line number Diff line number Diff line image: python:3.12 stages: - test - build - push variables: IMAGE_NAME: labs.etsi.org:5050/oop/code/open-exposure-gateway build_image: stage: build image: docker:latest services: - docker:dind script: - docker build -t $IMAGE_NAME:$CI_COMMIT_SHORT_SHA . - docker tag $IMAGE_NAME:$CI_COMMIT_SHORT_SHA $IMAGE_NAME:latest test: stage: test push_image: stage: push image: docker:latest services: - docker:dind script: - python -m pip install --upgrade pip - pip install uv - uv pip install -e . --system - pip install types-requests - uv run tox - echo "$CI_REGISTRY_PASSWORD" | docker login labs.etsi.org:5050 -u "$CI_REGISTRY_USER" --password-stdin - docker push $IMAGE_NAME:$CI_COMMIT_SHORT_SHA - docker push $IMAGE_NAME:latest only: - main Loading
.gitlab-ci.yml +25 −11 Original line number Diff line number Diff line image: python:3.12 stages: - test - build - push variables: IMAGE_NAME: labs.etsi.org:5050/oop/code/open-exposure-gateway build_image: stage: build image: docker:latest services: - docker:dind script: - docker build -t $IMAGE_NAME:$CI_COMMIT_SHORT_SHA . - docker tag $IMAGE_NAME:$CI_COMMIT_SHORT_SHA $IMAGE_NAME:latest test: stage: test push_image: stage: push image: docker:latest services: - docker:dind script: - python -m pip install --upgrade pip - pip install uv - uv pip install -e . --system - pip install types-requests - uv run tox - echo "$CI_REGISTRY_PASSWORD" | docker login labs.etsi.org:5050 -u "$CI_REGISTRY_USER" --password-stdin - docker push $IMAGE_NAME:$CI_COMMIT_SHORT_SHA - docker push $IMAGE_NAME:latest only: - main