Skip to content

Commit

Permalink
cicd update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginder-Singh committed Jan 19, 2023
1 parent 72d178f commit 0fa7f62
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ UploadToNexusPublic:
stage: Deploy
extends:
- ".signKeepBuildNumber"
rules:
- if: $DEV == "true"
variables:
NEXUS_SERVER: $NEXUS_SERVER_PRIVATE
- if: $CI_COMMIT_TAG
when: always

only:
- tags
except:
- branches
script:
- if [ "$DEV" == "true" ]; then NEXUS_SERVER=$NEXUS_SERVER_PRIVATE; else NEXUS_SERVER=$NEXUS_SERVER; fi
- echo "VERSION_CODE=$VERSION_CODE" >> build.env
- echo "VERSION_NAME=$VERSION_NAME" >> build.env
- export DIRECTORY=${VERSION_NAME}
Expand Down

0 comments on commit 0fa7f62

Please sign in to comment.