chore(build): try to buld docker files (#3444)
This commit is contained in:
parent
5c09893de4
commit
ac498a51bc
@ -18,17 +18,18 @@ executors:
|
|||||||
# Custom executor to override Cypress config
|
# Custom executor to override Cypress config
|
||||||
deploy-to-prod-executor:
|
deploy-to-prod-executor:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.14
|
- image: cimg/node:18.16.0
|
||||||
environment:
|
environment:
|
||||||
CYPRESS_BASE_URL: https://ohif-staging.netlify.com/
|
CYPRESS_BASE_URL: https://ohif-staging.netlify.com/
|
||||||
chrome-and-pacs:
|
chrome-and-pacs:
|
||||||
docker:
|
docker:
|
||||||
# Primary container image where all steps run.
|
# Primary container image where all steps run.
|
||||||
- image: 'cypress/browsers:node16.14.2-slim-chrome103-ff102'
|
- image: 'cypress/browsers:node18.12.0-chrome103-ff107'
|
||||||
|
# - image: 'cypress/browsers:node16.14.2-slim-chrome103-ff102'
|
||||||
|
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.14-browsers
|
- image: cimg/node:18.16.0-browsers
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm # Enable colors in term
|
TERM: xterm # Enable colors in term
|
||||||
QUICK_BUILD: true
|
QUICK_BUILD: true
|
||||||
@ -302,6 +303,7 @@ jobs:
|
|||||||
# This file will exist if a new version was published by
|
# This file will exist if a new version was published by
|
||||||
# our command in the previous job.
|
# our command in the previous job.
|
||||||
if [[ ! -e ../version.txt ]]; then
|
if [[ ! -e ../version.txt ]]; then
|
||||||
|
echo "No new version published. Skipping Docker build."
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
# Remove npm config
|
# Remove npm config
|
||||||
@ -332,19 +334,22 @@ jobs:
|
|||||||
# This file will exist if a new version was published by
|
# This file will exist if a new version was published by
|
||||||
# our command in the previous job.
|
# our command in the previous job.
|
||||||
if [[ ! -e ../version.txt ]]; then
|
if [[ ! -e ../version.txt ]]; then
|
||||||
|
echo "No new version published. Skipping Docker build."
|
||||||
|
# list the directory contents
|
||||||
|
ls -l
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
# Remove npm config
|
# Remove npm config
|
||||||
rm -f ./.npmrc
|
# rm -f ./.npmrc
|
||||||
# Set our version number using vars
|
# # Set our version number using vars
|
||||||
export IMAGE_VERSION=$(cat ../version.txt)
|
# export IMAGE_VERSION=$(cat ../version.txt)
|
||||||
export IMAGE_VERSION_FULL=v$IMAGE_VERSION
|
# export IMAGE_VERSION_FULL=v$IMAGE_VERSION
|
||||||
echo $IMAGE_VERSION
|
# echo $IMAGE_VERSION
|
||||||
echo $IMAGE_VERSION_FULL
|
# echo $IMAGE_VERSION_FULL
|
||||||
# Build our image, auth, and push
|
# # Build our image, auth, and push
|
||||||
docker build --tag ohif/app:$IMAGE_VERSION_FULL .
|
# docker build --tag ohif/app:$IMAGE_VERSION_FULL .
|
||||||
echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin
|
# echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin
|
||||||
docker push ohif/app:$IMAGE_VERSION_FULL
|
# docker push ohif/app:$IMAGE_VERSION_FULL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"cli": "node ./platform/cli/src/index.js",
|
"cli": "node ./platform/cli/src/index.js",
|
||||||
"build:ui:deploy-preview": "lerna run build:ui:deploy-preview --stream",
|
"build:ui:deploy-preview": "lerna run build:ui:deploy-preview --stream",
|
||||||
"build:demo": "lerna run build:viewer:demo --stream",
|
"build:demo": "lerna run build:viewer:demo --stream",
|
||||||
"build:package-all": "lerna run build:package --stream",
|
"build:package-all": "lerna run build:package --parallel --stream",
|
||||||
"dev": "lerna run dev:viewer --stream",
|
"dev": "lerna run dev:viewer --stream",
|
||||||
"dev:project": ".scripts/dev.sh",
|
"dev:project": ".scripts/dev.sh",
|
||||||
"dev:orthanc": "lerna run dev:orthanc --stream",
|
"dev:orthanc": "lerna run dev:orthanc --stream",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user