Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
required: false
type: string
default: '/opt/dspace-envs/8603/dump/dspace_dev5_dump_26.07.16.sql'
ASSETSTORE_PATH:
required: false
type: string
default: '/opt/dspace-envs/8603/assetstore'

workflow_dispatch:
inputs:
Expand All @@ -50,6 +54,11 @@ on:
required: false
type: string
default: '/opt/dspace-envs/8603/dump/dspace_dev5_dump_26.07.16.sql'
ASSETSTORE_PATH:
description: 'Absolute path of the assetstore directory ON THE DEV MACHINE'
required: false
type: string
default: '/opt/dspace-envs/8603/assetstore'
PROBE_ONLY:
description: 'Only report the state of the target machine; deploy and import nothing'
required: false
Expand Down Expand Up @@ -195,6 +204,7 @@ jobs:
INSTANCE: ${{inputs.INSTANCE}}
CONFIG_PATH: /opt/dspace-envs/${{inputs.INSTANCE}}
DUMP_PATH: ${{inputs.DUMP_PATH}}
ASSETSTORE_PATH: ${{inputs.ASSETSTORE_PATH}}
ADMIN_PASSWORD: ${{ secrets.DSPACE_ADMIN_PASSWORD }}
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -274,6 +284,19 @@ jobs:
docker restart $DNAME
sleep 60

- name: copy assetstore
run: |
export DNAME=dspace${INSTANCE}

# No `chown -R dspace:dspace` (unlike v7): the v9 runtime image has no `dspace`
# user, the webapp runs as root, and that chown fails with "invalid user".
echo "Preparing assetstore"
if [ -z "$ASSETSTORE_PATH" ]; then
echo "Assetstore path is empty. Not copying assetstore."
else
docker cp "$ASSETSTORE_PATH" $DNAME:/dspace/
fi
Comment thread
Kasinhou marked this conversation as resolved.

- name: create administrator
run: |
export DNAME=dspace${INSTANCE}
Expand Down
Loading