Skip to content
Snippets Groups Projects
Commit e667ff8a authored by Ubuntu's avatar Ubuntu
Browse files

Made edits to gitlab-ci.yml

parent f17319be
No related branches found
No related tags found
1 merge request!4Made edits to gitlab-ci.yml
default: default:
image: python:3.12-slim image: python:3.12-bullseye
workflow: workflow:
rules: rules:
...@@ -12,6 +12,7 @@ variables: ...@@ -12,6 +12,7 @@ variables:
PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip" PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip"
PIP_INDEX_URL: "https://__token__:${CI_JOB_TOKEN}@gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple" PIP_INDEX_URL: "https://__token__:${CI_JOB_TOKEN}@gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple"
PIP_EXTRA_INDEX_URL: "https://pypi.org/simple" PIP_EXTRA_INDEX_URL: "https://pypi.org/simple"
CXX: "/usr/bin/g++"
stages: stages:
- build - build
...@@ -20,6 +21,8 @@ stages: ...@@ -20,6 +21,8 @@ stages:
build_package: build_package:
stage: build stage: build
before_script:
- apt-get update && apt-get install -y g++ make build-essential cmake
script: script:
- pip install --upgrade pip - pip install --upgrade pip
- pip install setuptools wheel build - pip install setuptools wheel build
...@@ -54,6 +57,7 @@ build_and_push_docker_image: ...@@ -54,6 +57,7 @@ build_and_push_docker_image:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
before_script: before_script:
- echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin ${CI_REGISTRY} - echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin ${CI_REGISTRY}
- apt-get update && apt-get install -y g++ make build-essential cmake
script: script:
- echo "Building docker image and tagging as latest" - echo "Building docker image and tagging as latest"
- docker pull ${DOCKER_IMAGE_NAME}:latest || true - docker pull ${DOCKER_IMAGE_NAME}:latest || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment