Skip to content

Commit

Permalink
chore: migrate to different org for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Oct 29, 2018
1 parent 9c746db commit ee5efcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## deploy-build.sh

Deploys a build artifact from `$REPO_NAME` to `${REPO_NAME}-builds`.
Deploys a build artifact from `dhis2/$REPO_NAME` to `d2-ci/${REPO_NAME}`.
These builds can be pulled from NPM and can be built into the backend.

## publish-build.sh
Expand Down Expand Up @@ -88,11 +88,11 @@ By leaving the PR builds off and the branch buils on you still get the benefits

```
# for master branch
npm install ${app}@dhis2/${app}-builds
npm install ${app}@dhis2/${app}
# for 2.30
npm install ${app}@dhis2/${app}-builds#2.30
npm install ${app}@dhis2/${app}#2.30
# for random feature branch
npm install ${app}@dhis2/${app}-builds#feature/random-branch-name
npm install ${app}@dhis2/${app}#feature/random-branch-name
```
4 changes: 2 additions & 2 deletions deploy-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function deployRepo {

BUILD_DIR="${REPO_DIR}/build"

BUILD_REPO_NAME="${COMPONENT}-builds"
BUILD_REPO_NAME="${COMPONENT}"
BUILD_REPO_DIR="tmp/${BUILD_REPO_NAME}"

BRANCH=${TRAVIS_BRANCH:-$(git symbolic-ref --short HEAD)}
Expand Down Expand Up @@ -197,7 +197,7 @@ if [ $# -gt 0 ]; then
readonly ENDPOINT="user/repos"
readonly PROTOCOL="ssh"
else
readonly ORG="dhis2"
readonly ORG="d2-ci"
readonly ENDPOINT="orgs/${ORG}/repos"
readonly PROTOCOL="https"
fi
Expand Down

0 comments on commit ee5efcc

Please sign in to comment.