fix cli command use

This commit is contained in:
Eugenio Romano
2019-08-30 10:02:20 +01:00
parent b25d989853
commit ee71866702
3 changed files with 8 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ jobs:
script: script:
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh) - TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
- echo "Running the docker with tag" $TAG_VERSION - echo "Running the docker with tag" $TAG_VERSION
- ./lib/dist/cli/bin/adf-cli docker-publish --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)" - ./node_modules/@alfresco/adf-cli/bin/adf-cli docker-publish --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)"
- stage: Update Rancher - stage: Update Rancher
@@ -149,4 +149,5 @@ deploy:
cache: cache:
directories: directories:
- node_modules - node_modules
- demo-shell/dist
- tmp - tmp

View File

@@ -12,3 +12,8 @@ npm run dist
cd $DIR/../../ cd $DIR/../../
cp -R ./lib/cli/dist lib/dist/cli/ cp -R ./lib/cli/dist lib/dist/cli/
echo "====== Move to node_modules ======"
rm -rf ./node_modules/@alfresco/adf-cli/ && \
mkdir -p ./node_modules/@alfresco/adf-cli/ && \
cp -R ./lib/dist/cli/* ./node_modules/@alfresco/adf-cli/

View File

@@ -4,4 +4,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../ cd $DIR/../../../
./lib/dist/cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)" ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"