Skip to content

Commit

Permalink
Merge pull request OHIF#8 from ImagingDataCommons/wjrl-idc-deployment
Browse files Browse the repository at this point in the history
Remove debug, fix dir
  • Loading branch information
wlongabaugh authored Sep 29, 2023
2 parents 5491113 + fdb4b31 commit aa26bcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
build_job:
environment:
TZ: '/usr/share/zoneinfo/America/Los_Angeles'
working_directory: ~/Viewers
working_directory: ~/ViewersV3
docker:
- image: cimg/python:3.8
resource_class: large
Expand All @@ -101,9 +101,9 @@ jobs:
# - run:
# name: Copy in IDC favicons
# command: |
# cp ~/Viewers/idc-assets/favicon-nci.ico ~/ViewersV3/platform/viewer/public/assets/favicon.ico
# cp ~/Viewers/idc-assets/favicon-nci-16x16.png ~/ViewersV3/platform/viewer/public/assets/favicon-16x16.png
# cp ~/Viewers/idc-assets/favicon-nci-32x32.png ~/ViewersV3/platform/viewer/public/assets/favicon-32x32.png
# cp ~/ViewersV3/idc-assets/favicon-nci.ico ~/ViewersV3/platform/viewer/public/assets/favicon.ico
# cp ~/ViewersV3/idc-assets/favicon-nci-16x16.png ~/ViewersV3/platform/viewer/public/assets/favicon-16x16.png
# cp ~/ViewersV3/idc-assets/favicon-nci-32x32.png ~/ViewersV3/platform/viewer/public/assets/favicon-32x32.png
- run:
name: Build Viewer
command: |
Expand All @@ -114,7 +114,7 @@ jobs:
./idc-deploy-shell/killPing.sh
- save_cache:
key: idc-viewer-{{ epoch }}
key: idc-viewerV3-{{ epoch }}
paths:
- ./platform/viewer/dist
- ./idc-deploy-shell
Expand All @@ -125,11 +125,11 @@ jobs:
TZ: '/usr/share/zoneinfo/America/Los_Angeles'
docker:
- image: cimg/python:3.8
working_directory: ~/Viewers
working_directory: ~/ViewersV3
steps:
- restore_cache:
keys:
- idc-viewer-
- idc-viewerV3-
- install_cloud_sdk
- deployment_setup
- auth
Expand All @@ -138,7 +138,7 @@ jobs:
# name: Customize Config
# command: |
# /bin/bash ./idc-deploy-shell/prepare_config.sh > platform/viewer/dist/app-config.js
# cp ~/Viewers/idc-assets/IDC-Logo-WHITE.svg platform/viewer/dist/IDC-Logo-WHITE.svg
# cp ~/ViewersV3/idc-assets/IDC-Logo-WHITE.svg platform/viewer/dist/IDC-Logo-WHITE.svg
- run:
name: Copy to cloud
command: |
Expand Down
6 changes: 0 additions & 6 deletions idc-deploy-shell/pull_config.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/usr/bin/env bash

if [ ! -f "/home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt" ]; then
echo gs://${DEPLOYMENT_BUCKET}/viewer3_deployment_config.txt
ls -las /home/circleci/${CIRCLE_PROJECT_REPONAME}
gsutil ls gs://${DEPLOYMENT_BUCKET}/
# Suddenly gsutil does not like trailing slashes as gs destinations?
echo /home/circleci/${CIRCLE_PROJECT_REPONAME}
gsutil cp gs://${DEPLOYMENT_BUCKET}/viewer3_deployment_config.txt /home/circleci/${CIRCLE_PROJECT_REPONAME}/
ls -lasR /home/circleci/${CIRCLE_PROJECT_REPONAME}
chmod ugo+r /home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt
if [ ! -f "/home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt" ]; then
echo "[ERROR] Couldn't assign viewer deployment configuration file - exiting."
Expand Down

0 comments on commit aa26bcb

Please sign in to comment.