Skip to content

Commit

Permalink
[devOps] using composite
Browse files Browse the repository at this point in the history
  • Loading branch information
jm committed Nov 8, 2023
1 parent b5b2271 commit b5754b1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/import-db/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
steps:

- name: info
shell: bash
run: |
docker ps -a
Expand All @@ -25,6 +26,7 @@ runs:
path: dspace-python-api
ref: 'refactor_jm'


- name: stop and remove containers
id: import
shell: bash
Expand Down Expand Up @@ -54,8 +56,9 @@ runs:
rm __temp/resume/*.json || true
python3 repo_import.py --resume=false --config=backend.endpoint=$BEURL --config=db_dspace_7.port=$DB7PORT --config=db_dspace_5.port=$DB5PORT --config=db_utilities_5.port=$DB5PORT --config=input.datadir=$DATADIR/data/ --config=input.icondir=$DATADIR/icon/
- name: cleanup
run: |
docker stop ${{ steps.import.outputs.cid }} || true
if: ${{ always() }}
- name: cleanup
shell: bash
run: |
docker stop ${{ steps.import.outputs.cid }} || true
if: ${{ always() }}

0 comments on commit b5754b1

Please sign in to comment.