diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d355798..455d732 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,9 @@ include: - template: Security/Secret-Detection.gitlab-ci.yml container_scanning: stage: security + needs: + - job: docker + artifacts: false variables: CI_APPLICATION_REPOSITORY: ${CI_REGISTRY_IMAGE}/satnogs-db CI_APPLICATION_TAG: ${CI_COMMIT_REF_NAME} @@ -30,6 +33,9 @@ container_scanning: - if: $CI_REGISTRY_IMAGE && $CI_COMMIT_TAG dependency_scanning: stage: security + needs: + - job: api + artifacts: true variables: DS_DEFAULT_ANALYZERS: 'gemnasium,gemnasium-python,retire.js' gemnasium-python-dependency_scanning: @@ -38,14 +44,24 @@ gemnasium-python-dependency_scanning: - apt-get -qy install libmariadb-dev python3-pil libjpeg-dev sast: stage: security + needs: + - job: api + artifacts: true secret_detection: stage: security + needs: + - job: api + artifacts: true secret_detection_default_branch: stage: security + needs: + - job: api + artifacts: true variables: SAST_DISABLE_BABEL: 'true' schema: stage: schema + needs: [] image: ${GITLAB_CI_IMAGE_PYTHON} script: - pip install --no-cache-dir --no-deps -r "requirements.txt" --force-reinstall . @@ -66,6 +82,9 @@ schema: - satnogs-db-api-client api: stage: api + needs: + - job: schema + artifacts: true image: ${GITLAB_CI_IMAGE_OPENAPI_GENERATOR_CLI} script: - >- @@ -89,6 +108,7 @@ api: - satnogs-db-api-client static_js_css: stage: static + needs: [] image: ${GITLAB_CI_IMAGE_NODE} script: - npm ci @@ -100,6 +120,7 @@ static_js_css: - db/static/lib static: stage: static + needs: [] image: ${GITLAB_CI_IMAGE_PYTHON} before_script: - pip install "$GITLAB_CI_PYPI_TOX" @@ -107,6 +128,7 @@ static: - tox -e "flake8,isort,yapf,pylint" docs: stage: build + needs: [] image: ${GITLAB_CI_IMAGE_PYTHON} before_script: - pip install "$GITLAB_CI_PYPI_TOX" @@ -120,6 +142,7 @@ docs: - docs/_build/html build: stage: build + needs: [] image: ${GITLAB_CI_IMAGE_PYTHON} before_script: - pip install "$GITLAB_CI_PYPI_TOX" @@ -137,6 +160,7 @@ build: - satnogs-db-api-client/dist test: stage: test + needs: [] image: ${GITLAB_CI_IMAGE_PYTHON} before_script: - pip install "$GITLAB_CI_PYPI_TOX"