From cf9b09fcfa9866974fdac1a8ba8fbd23a4306462 Mon Sep 17 00:00:00 2001 From: Ryan Ordway Date: Wed, 10 Sep 2025 15:27:03 -0700 Subject: [PATCH] adds branch name to image tag name --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 29e9e97bb..2b2e0f4a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -229,8 +229,9 @@ jobs: export APP_VERSION=$(cat lib/oregon_digital/version.rb | grep VERSION | cut -d "=" -f 2 | sed "s/['\" ]//g") export GIT_SHORT_HASH=$(git rev-parse --short HEAD) export DATETIME=$(date "+%Y%m%d%H%M") - export TAG="$DATETIME-$GIT_SHORT_HASH" - export DEPLOYED_VERSION="$DATETIME-$GIT_SHORT_HASH" + export GIT_BRANCH=$(git branch --show-current) + export TAG="$DATETIME-$GIT_SHORT_HASH-$GIT_BRANCH" + export DEPLOYED_VERSION="$DATETIME-$GIT_SHORT_HASH-$GIT_BRANCH" echo export RAILS_ENV="$RAILS_ENV" >> $BASH_ENV echo export TAG="$TAG" >> $BASH_ENV echo export DEPLOYED_VERSION="$DEPLOYED_VERSION" >> $BASH_ENV