forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50ac30a
commit a726235
Showing
2 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'Erase dspace db' | ||
description: 'CI/CD Erase db' | ||
|
||
inputs: | ||
INSTANCE: | ||
description: 'port suffix' | ||
required: true | ||
type: string | ||
NAME: | ||
description: 'docker compose project name' | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: stop and remove containers | ||
shell: bash | ||
env: | ||
INSTANCE: ${{ inputs.INSTANCE }} | ||
run: | | ||
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 | ||
shell: bash | ||
env: | ||
NAME: ${{ inputs.NAME }} | ||
run: | | ||
# # condition below was found by accident and appears to be useless. Investigate later. | ||
# be sure to have INSTANCE set | ||
# if [[ "x${NAME}" != "dspace-" ]]; then | ||
docker volume rm $(docker volume ls --filter name="${NAME}_" -q) || true | ||
# fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters