File tree 2 files changed +5
-7
lines changed
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
+
1
5
stages :
2
6
- build_image
3
7
- generate_child_yaml
@@ -7,12 +11,7 @@ variables:
7
11
DOCKER_IMAGE : $CI_REGISTRY_IMAGE
8
12
DOCKER_TAG : $CI_PIPELINE_ID
9
13
10
- .on_branch_push :
11
- rules :
12
- - if : $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH
13
-
14
14
build_image :
15
- extends : .on_branch_push
16
15
stage : build_image
17
16
rules :
18
17
- if : $CI_COMMIT_BRANCH
@@ -23,7 +22,6 @@ build_image:
23
22
- docker push $DOCKER_IMAGE:$DOCKER_TAG
24
23
25
24
generate_child_yaml :
26
- extends : .on_branch_push
27
25
stage : generate_child_yaml
28
26
image : $DOCKER_IMAGE:$DOCKER_TAG
29
27
script :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ GIT_HASH=$(git rev-parse HEAD)
13
13
BUILD_DATE=$( TZ=" America/Los_Angeles" date +" %Y-%m-%d %H:%M:%S %Z" )
14
14
15
15
# Get the current code version from git
16
- VERSION=$( git tag --points-at HEAD )
16
+ VERSION=$( git describe --tags | cut -d- -f1 )
17
17
18
18
# Append newline to ensure following lines are separated from existing content
19
19
echo " " >> " $TARGET_ENV_FILE "
You can’t perform that action at this time.
0 commit comments