Commit b21a2e10 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - SIMAP DataStore:

- Fixed CI pipeline
parent 2d3e0380
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -13,14 +13,14 @@
# limitations under the License.
# limitations under the License.


# Build, tag, and push the Docker image to the GitLab Docker registry
# Build, tag, and push the Docker image to the GitLab Docker registry
build simap_server:
build simap_datastore:
  stage: build
  stage: build
  before_script:
  before_script:
    - docker image prune --force
    - docker image prune --force
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
  script:
  script:
    - docker buildx build -t "$CI_REGISTRY_IMAGE/simap-server:test" -f ./src/tests/tools/simap_server/Dockerfile .
    - docker buildx build -t "$CI_REGISTRY_IMAGE/simap-datastore:test" -f ./src/tests/tools/simap_datastore/Dockerfile .
    - docker push "$CI_REGISTRY_IMAGE/simap-server:test"
    - docker push "$CI_REGISTRY_IMAGE/simap-datastore:test"
  after_script:
  after_script:
    - docker image prune --force
    - docker image prune --force
  rules:
  rules:
@@ -29,8 +29,8 @@ build simap_server:
    - changes:
    - changes:
      - src/common/**/*.py
      - src/common/**/*.py
      - proto/*.proto
      - proto/*.proto
      - src/src/tests/tools/simap_server/**/*.{py,in,yml,yaml,yang,sh,json}
      - src/src/tests/tools/simap_datastore/**/*.{py,in,yml,yaml,yang,sh,json}
      - src/src/tests/tools/simap_server/Dockerfile
      - src/src/tests/tools/simap_datastore/Dockerfile
      - src/src/tests/.gitlab-ci.yml
      - src/src/tests/.gitlab-ci.yml
      #- src/device/**/*.{py,in,yml}
      #- src/device/**/*.{py,in,yml}
      #- src/device/Dockerfile
      #- src/device/Dockerfile