From e5ecf95aa051f41e920ef2dd6d94a838cc4269cb Mon Sep 17 00:00:00 2001 From: Apurb Rajdhan <103931815+apurbraj@users.noreply.github.com> Date: Tue, 23 Jul 2024 19:04:31 +0530 Subject: [PATCH] Update circle ci variable name --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 61ae4730..8d01dc29 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,10 +74,10 @@ jobs: docker build -t fynarfin/ph-ee-connector-channel:latest . if [ "$CIRCLE_BRANCH" != "develop" ]; then PR_NUMBER=$(basename $CIRCLE_PULL_REQUEST) - PR_TITLE=$(curl -sSL "https://api.github.com/repos/fynarfin/$CIRCLE_PR_REPONAME/pulls/$PR_NUMBER" | jq -r '.title') + PR_TITLE=$(curl -sSL "https://api.github.com/repos/fynarfin/$CIRCLE_PROJECT_REPONAME/pulls/$PR_NUMBER" | jq -r '.title') JIRA_STORY=$(echo $PR_TITLE | cut -d "[" -f2 | cut -d "]" -f1 | tr '[A-Z]' '[a-z]') if [ -z "$JIRA_STORY" ]; then echo "Invalid PR title" && exit 1; else echo "Ticket NO: $JIRA_STORY"; fi - docker image tag fynarfin/$CIRCLE_PR_REPONAME:latest fynarfin/$CIRCLE_PR_REPONAME:$JIRA_STORY + docker image tag fynarfin/$CIRCLE_PROJECT_REPONAME:latest fynarfin/$CIRCLE_PROJECT_REPONAME:$JIRA_STORY fi # Log in to DockerHub using environment variables - run: @@ -93,9 +93,9 @@ jobs: fi if [ "$CIRCLE_BRANCH" != "develop" ]; then PR_NUMBER=$(basename $CIRCLE_PULL_REQUEST) - PR_TITLE=$(curl -sSL "https://api.github.com/repos/fynarfin/$CIRCLE_PR_REPONAME/pulls/$PR_NUMBER" | jq -r '.title') + PR_TITLE=$(curl -sSL "https://api.github.com/repos/fynarfin/$CIRCLE_PROJECT_REPONAME/pulls/$PR_NUMBER" | jq -r '.title') JIRA_STORY=$(echo $PR_TITLE | cut -d "[" -f2 | cut -d "]" -f1 | tr '[A-Z]' '[a-z]') - docker push fynarfin/$CIRCLE_PR_REPONAME:${JIRA_STORY} + docker push fynarfin/$CIRCLE_PROJECT_REPONAME:${JIRA_STORY} fi docker-image-availability-check-and-upgrade: docker: