File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1+ workflow :
2+ rules :
3+ - if : $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH =~ /^ucsc\//
4+
15stages :
26 - build_image
37 - generate_child_yaml
@@ -7,12 +11,7 @@ variables:
711 DOCKER_IMAGE : $CI_REGISTRY_IMAGE
812 DOCKER_TAG : $CI_PIPELINE_ID
913
10- .on_branch_push :
11- rules :
12- - if : $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH
13-
1414build_image :
15- extends : .on_branch_push
1615 stage : build_image
1716 rules :
1817 - if : $CI_COMMIT_BRANCH
@@ -23,7 +22,6 @@ build_image:
2322 - docker push $DOCKER_IMAGE:$DOCKER_TAG
2423
2524generate_child_yaml :
26- extends : .on_branch_push
2725 stage : generate_child_yaml
2826 image : $DOCKER_IMAGE:$DOCKER_TAG
2927 script :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ GIT_HASH=$(git rev-parse HEAD)
1313BUILD_DATE=$( TZ=" America/Los_Angeles" date +" %Y-%m-%d %H:%M:%S %Z" )
1414
1515# Get the current code version from git
16- VERSION=$( git tag --points-at HEAD )
16+ VERSION=$( git describe --tags | cut -d- -f1 )
1717
1818# Append newline to ensure following lines are separated from existing content
1919echo " " >> " $TARGET_ENV_FILE "
You can’t perform that action at this time.
0 commit comments