Skip to content

Commit e9753b3

Browse files
authored
fix: apply patch for prod deployment version fixes (#4299) (#4300)
1 parent be67a34 commit e9753b3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.gitlab/ci.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
workflow:
2+
rules:
3+
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH =~ /^ucsc\//
4+
15
stages:
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-
1414
build_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

2524
generate_child_yaml:
26-
extends: .on_branch_push
2725
stage: generate_child_yaml
2826
image: $DOCKER_IMAGE:$DOCKER_TAG
2927
script:

scripts/set-version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GIT_HASH=$(git rev-parse HEAD)
1313
BUILD_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
1919
echo "" >> "$TARGET_ENV_FILE"

0 commit comments

Comments
 (0)