variables: GIT_STRATEGY: fetch GIT_FETCH_EXTRA_FLAGS: --prune --tags --depth 500 stages: - build build_job: only: - develop stage: build script: # Download fileManager - bash docker/download_filemanager.sh "1.0.11" - bash docker/build.sh $VERSION before_script: - VERSION=$(git describe | awk -F- '{ if( $2) {print $1 "." $2} else {print $1 ".1"} }' ) - echo $VERSION