Skip to content

Commit

Permalink
Update deploy and config
Browse files Browse the repository at this point in the history
Former-commit-id: 25fc5ed
  • Loading branch information
xhlulu committed May 25, 2021
1 parent a8c9745 commit a2255d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test_black:
docker:
- image: circleci/python:3.6-stretch-node-browsers
working_directory: ~/dash-teaser-apps
working_directory: ~/dash-sample-apps

steps:
- checkout
Expand All @@ -20,7 +20,7 @@ jobs:
deploy:
docker:
- image: cimg/base:stable-20.04
working_directory: ~/dash-teaser-apps
working_directory: ~/dash-sample-apps
parameters:
only_changed_apps:
type: boolean
Expand Down Expand Up @@ -110,8 +110,9 @@ commands:
name: Deploy
environment:
CREATE_APP: "true"
CREATE_DBS: "false"
command: |
APPS_MODIFIED=$(ls apps | grep dash- | sort -u)
APPS_MODIFIED=$(ls apps | sort -u)
<<# parameters.only_changed_apps >>
APPS_MODIFIED=$(git diff origin/main origin/$CIRCLE_BRANCH --dirstat=files,1 apps/ | awk '{ split($2,a,"/"); if (length(a[2]) != 0) { print a[2]} } ' | sort -u)
<</ parameters.only_changed_apps >>
Expand Down
2 changes: 1 addition & 1 deletion deploy
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ main() {

log-header "Deploying $APP"
log-info "dashr: ${is_dashr}"
if [[ "$is_dashr" == "false" ]]; then
if [[ "$is_dashr" == "false" ]] && [[ "$CREATE_DBS" == "true" ]]; then
local celery_version="$(cat "$app_dir/requirements.txt" | grep -E "^celery=")"
local redis_version="$(cat "$app_dir/requirements.txt" | grep -E "^redis=")"

Expand Down

0 comments on commit a2255d3

Please sign in to comment.