Skip to content

Commit

Permalink
debug and fix deploy and import
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger authored Nov 7, 2023
1 parent a88670e commit 30464f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
run: |
ENVFILE=/opt/dspace-envs/.env.dspace.imported.dev-5 ./start.sh dspace-5-import
sleep 120
echo "done with start.sh, going to request import"
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" \
--request POST \
https://api.github.com/repos/dataquest-dev/ \
https://api.github.com/repos/dataquest-dev/\
dspace-angular/actions/workflows/import.yml/dispatches \
--data "{\"ref\":\"refs/heads/dtq-dev\"}"
7 changes: 4 additions & 3 deletions build-scripts/run/start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

echo "testing existence of envfile"
if [[ "x$ENVFILE" == "x" ]]; then
export ENVFILE=$(pwd)/envs/.default
echo "setting up new envfile"
fi

source $ENVFILE
Expand All @@ -17,8 +18,8 @@ popd
# Create admin user
# set DOCKER_OWNER to match our image (see cli.yml)
pushd ../..
docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml pull
docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml up -d --no-build
#docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml pull
#docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml up -d --no-build
docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli create-administrator -e [email protected] -f admin -l user -p admin -c en -o dataquest
docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli user --add -m [email protected] -g meno -s priezvisko -l en -p user -o dataquest
docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli version
Expand Down

0 comments on commit 30464f5

Please sign in to comment.