Commit 44933cb6 authored by Paris Stentoumis's avatar Paris Stentoumis
Browse files

fix: changed command to disable attestations from docker build

parent bc660a8f
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ stages:
  - lint
  - format
  - test
  - build
  - build-and-push

variables:
  UV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/uv"
@@ -52,8 +52,8 @@ test:
    - pytest tests/unit tests/integration tests/api --cov=src/srm --cov-branch --cov-report=term-missing || [ $? -eq 5 ] #bypass no tests found error.
  coverage: '/TOTAL.+ ([0-9]{1,3}(?:\.[0-9]+)?%)/'

build:
  stage: build
build-and-push:
  stage: build-and-push
  image: docker:cli
  variables:
    DOCKER_HOST: tcp://docker:2375
@@ -65,8 +65,7 @@ build:
  script:
    - export TEST_IMAGE_TAG="ci-${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}"
    - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
    - docker build --network=host -t "$CI_REGISTRY_IMAGE:$TEST_IMAGE_TAG" .
    - docker push "$CI_REGISTRY_IMAGE:$TEST_IMAGE_TAG"
    - docker buildx build --provenance=false --network=host -t "$CI_REGISTRY_IMAGE:$TEST_IMAGE_TAG" --push .
    - docker logout "$CI_REGISTRY"
  rules:
    - if: '$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "develop"'