Skip to content

Commit

Permalink
fix: apply patch for prod deployment version fixes (#4299) (#4300)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx authored Dec 4, 2024
1 parent be67a34 commit e9753b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .gitlab/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH =~ /^ucsc\//

stages:
- build_image
- generate_child_yaml
Expand All @@ -7,12 +11,7 @@ variables:
DOCKER_IMAGE: $CI_REGISTRY_IMAGE
DOCKER_TAG: $CI_PIPELINE_ID

.on_branch_push:
rules:
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH

build_image:
extends: .on_branch_push
stage: build_image
rules:
- if: $CI_COMMIT_BRANCH
Expand All @@ -23,7 +22,6 @@ build_image:
- docker push $DOCKER_IMAGE:$DOCKER_TAG

generate_child_yaml:
extends: .on_branch_push
stage: generate_child_yaml
image: $DOCKER_IMAGE:$DOCKER_TAG
script:
Expand Down
2 changes: 1 addition & 1 deletion scripts/set-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GIT_HASH=$(git rev-parse HEAD)
BUILD_DATE=$(TZ="America/Los_Angeles" date +"%Y-%m-%d %H:%M:%S %Z")

# Get the current code version from git
VERSION=$(git tag --points-at HEAD)
VERSION=$(git describe --tags | cut -d- -f1)

# Append newline to ensure following lines are separated from existing content
echo "" >> "$TARGET_ENV_FILE"
Expand Down

0 comments on commit e9753b3

Please sign in to comment.