Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge branch 'nvjmayo/gpu-feature-discovery-dirty-source-error-check'
Browse files Browse the repository at this point in the history
* nvjmayo/gpu-feature-discovery-dirty-source-error-check:
  [CI] default to recursive submodule strategy
  [CI] error out if source tree is dirty.
  • Loading branch information
nvjmayo committed Sep 26, 2020
2 parents 8d4a763 + 7319d91 commit c2bde00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ variables:
DOCKER_REPO: "nvidia"
DOCKER_PROD_IMAGE: "${DOCKER_REPO}/${DOCKER_IMAGE_NAME}"
TF_VAR_FILE: "$CI_PROJECT_DIR/tests/terraform.tfvars"
GIT_SUBMODULE_STRATEGY: recursive

stages:
- versionning
Expand All @@ -25,6 +26,7 @@ versionning:
name: alpine/git
entrypoint: ['/usr/bin/env']
script:
- "git diff-index --quiet HEAD -- || ( echo ERROR: Unstaged files or dirty index ; exit 1 )"
- echo export VERSION=$(git describe --tags --dirty --always) > version
- echo export LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) >> version
artifacts:
Expand Down

0 comments on commit c2bde00

Please sign in to comment.