Skip to content

Commit 587fbbb

Browse files
committed
fix: Remove redundant exports from deploy workflow
1 parent 09a5339 commit 587fbbb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ jobs:
5858
- name: deploy to dev-5
5959
working-directory: build-scripts/run/
6060
run: |
61-
export INSTANCE="${INSTANCE}"
62-
export ADMIN_PASSWORD="${ADMIN_PASSWORD}"
63-
export USER_PASSWORD="${USER_PASSWORD}"
6461
./start.sh dspace-$INSTANCE
6562
cd ../..
6663
# use customized docker-compose file for the `85` port because the server is exposed with the namespace `repository`
@@ -92,9 +89,6 @@ jobs:
9289
- name: deploy dspace-import on dev-5
9390
working-directory: build-scripts/run/
9491
run: |
95-
export INSTANCE="${INSTANCE}"
96-
export ADMIN_PASSWORD="${ADMIN_PASSWORD}"
97-
export USER_PASSWORD="${USER_PASSWORD}"
9892
./start.sh dspace-$INSTANCE
9993
cd ../..
10094
# this is not necessary, since extra.yml doesn't contain any new images that weren't pulled within script above

build-scripts/run/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ PROJECT=${1:-unnamed_dspace}
88

99
echo "Using envfile: [$ENVFILE] for project: [$PROJECT]"
1010

11+
# Debug: Check what's in the environment before anything
12+
echo "DEBUG: Environment check before sourcing:"
13+
echo " ADMIN_PASSWORD in env: $(printenv ADMIN_PASSWORD > /dev/null 2>&1 && echo 'yes' || echo 'NO')"
14+
echo " USER_PASSWORD in env: $(printenv USER_PASSWORD > /dev/null 2>&1 && echo 'yes' || echo 'NO')"
15+
1116
# Preserve passwords if they're already set - they take precedence over env file
1217
SAVED_ADMIN_PASSWORD="${ADMIN_PASSWORD:-}"
1318
SAVED_USER_PASSWORD="${USER_PASSWORD:-}"

0 commit comments

Comments
 (0)