Skip to content

Commit

Permalink
Make repository values dynamic for https and ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Oct 12, 2018
1 parent 6054e2e commit f6ef06c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
orbtools: gofunky/orbtools@dev:0.0.15
orbtools: gofunky/orbtools@dev:0.0.16
envorb: gofunky/[email protected]

master_filter: &master_filter
Expand Down
4 changes: 2 additions & 2 deletions src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ commands:
NOTE: this currently assumes you are publishing to the registry at circleci.com
command: |
source /usr/local/bin/envload
export REPOSITORY_ORGANIZATION=$(git remote -v | grep "(fetch)" | sed 's/.*\/\([^ ]*\)\/.*/\1/')
export REPOSITORY_ORGANIZATION=$(git config --get remote.origin.url | rev | tr '.:' '/' | cut -d'/' -f3 | rev)
echo "SET REPOSITORY_ORGANIZATION: ${REPOSITORY_ORGANIZATION}"
export REPOSITORY_NAME=$(basename -s .git `git config --get remote.origin.url`)
export REPOSITORY_NAME=$(git config --get remote.origin.url | rev | tr '.:' '/' | cut -d'/' -f2 | rev)
echo "SET REPOSITORY_NAME: ${REPOSITORY_NAME}"
circleci orb publish << parameters.orb-path >> << parameters.orb-ref >> <<# parameters.token-variable >>--token << parameters.token-variable >> <</ parameters.token-variable >>
Expand Down

0 comments on commit f6ef06c

Please sign in to comment.