From db6a638a2d834cc628ae7a3ea60e92035b022ef1 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Fri, 8 Oct 2021 14:52:29 +0100 Subject: [PATCH] [AAE-6099] Storybook deploy image on quay.io (#7288) * Try to build on travis * Use the new quay repository called storybook * Build and release demoshell and storybook toghether --- .travis.yml | 5 +++-- scripts/travis/release/release-docker.sh | 9 ++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index df1d4c6aea..0070dc1a04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,10 +113,11 @@ jobs: use: node_modules_cache - stage: "Build Demo shell" - name: "Demo Shell :Build && dockerize" + name: "Demo Shell & Storybook :Build && dockerize" script: - # Build Demo shell for production docker" + # Build Demo shell & Storybook for production docker" - NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production + - NODE_OPTIONS=--max_old_space_size=8192 nx run process-services-cloud:build-storybook --configuration ci - ./scripts/travis/release/release-docker.sh workspaces: create: diff --git a/scripts/travis/release/release-docker.sh b/scripts/travis/release/release-docker.sh index 3efeb2bb06..e300ff1aba 100755 --- a/scripts/travis/release/release-docker.sh +++ b/scripts/travis/release/release-docker.sh @@ -31,13 +31,20 @@ then fi; - echo "ℹ️ Running the docker with tag" $TAGS + echo "ℹ️ demo-shell: Running the docker with tag" $TAGS DOCKER_PROJECT_ARGS="PROJECT_NAME=demo-shell" # Publish Image to docker ./node_modules/@alfresco/adf-cli/bin/adf-cli docker --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --buildArgs "$DOCKER_PROJECT_ARGS" --dockerTags "$TAGS" --pathProject "$(pwd)" + echo "ℹ️ storybook-shell: Running the docker with tag" $TAGS + + DOCKER_PROJECT_ARGS="PROJECT_NAME=storybook/process-services-cloud" + + # Publish Image to docker + ./node_modules/@alfresco/adf-cli/bin/adf-cli docker --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY_STORYBOOK" --buildArgs "$DOCKER_PROJECT_ARGS" --dockerTags "$TAGS" --pathProject "$(pwd)" + fi; else echo "✅ No need to release a docker image"