Skip to content

Commit

Permalink
[devOps] import/erase workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jm committed Nov 7, 2023
1 parent 7882825 commit 24c3db1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/erase_db.yml
Original file line number Diff line number Diff line change
@@ -28,10 +28,13 @@ jobs:

- name: stop and remove containers
run: |
docker stop dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE || true
docker rm dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE || true
docker stop dspacesolr$INSTANCE dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE || true
docker rm dspacesolr$INSTANCE dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE || true
- name: remove volumes
if: '!cancelled()'
run: |
docker volume rm $NAME_pgdata $NAME_assetstore || true
# be sure to have INSTANCE set
if [[ "x$NAME" != "dspace-" ]]; then
docker volume rm $(docker volume ls --filter name=$NAME_ -q) || true
fi;

0 comments on commit 24c3db1

Please sign in to comment.