Skip to content

Commit

Permalink
Merge pull request #154 from mosip/urviljoshi-patch-1
Browse files Browse the repository at this point in the history
updated push trigger
  • Loading branch information
ckm007 authored Feb 10, 2022
2 parents 63ac77e + 6ac0a59 commit 401f3be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@ jobs:
- name: Push images
run: |
HUB_IMAGE_ID=$NAMESPACE/$SERVICE_NAME
#CONSOLIDATOR_IMAGE_ID=$NAMESPACE/$CONSOLIDATOR_SERVICE_NAME
CONSOLIDATOR_IMAGE_ID=$NAMESPACE/$CONSOLIDATOR_SERVICE_NAME
# Change all uppercase to lowercase
HUB_IMAGE_ID=$(echo $HUB_IMAGE_ID | tr '[A-Z]' '[a-z]')
# CONSOLIDATOR_IMAGE_ID=$(echo $CONSOLIDATOR_IMAGE_ID | tr '[A-Z]' '[a-z]')
CONSOLIDATOR_IMAGE_ID=$(echo $CONSOLIDATOR_IMAGE_ID | tr '[A-Z]' '[a-z]')
if [[ $BRANCH_NAME == master ]]; then
VERSION=latest
else
VERSION=$BRANCH_NAME
fi
echo "push version $VERSION"
echo HUB_IMAGE_ID=$HUB_IMAGE_ID
# echo CONSOLIDATOR_IMAGE_ID=$CONSOLIDATOR_IMAGE_ID
echo CONSOLIDATOR_IMAGE_ID=$CONSOLIDATOR_IMAGE_ID
echo VERSION=$VERSION
docker tag $SERVICE_NAME $HUB_IMAGE_ID:$VERSION
docker push $HUB_IMAGE_ID:$VERSION
# docker tag $CONSOLIDATOR_SERVICE_NAME $CONSOLIDATOR_IMAGE_ID:$VERSION
# docker push $CONSOLIDATOR_IMAGE_ID:$VERSION
docker tag $CONSOLIDATOR_SERVICE_NAME $CONSOLIDATOR_IMAGE_ID:$VERSION
docker push $CONSOLIDATOR_IMAGE_ID:$VERSION
publish_to_nexus:
if: "!contains(github.ref, 'master')"
Expand Down

0 comments on commit 401f3be

Please sign in to comment.