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 70440ea commit b081241
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
deploy:
runs-on: dspace-dep-1
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -42,14 +43,15 @@ jobs:
deploy-import:
runs-on: dspace-dep-1
timeout-minutes: 5
steps:
- uses: actions/checkout@v4

- name: deploy dspace-import on dev-5
working-directory: build-scripts/run/
run: |
ENVFILE=/opt/dspace-envs/.env.dspace.imported.dev-5 ./start.sh dspace-5-import
sleep 120
/bin/bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://dev-5.pc:88/server/api)" != "200" ]]; do sleep 5; done'
post-deploy-import:
needs: deploy-import
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/erase_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ on:

jobs:
recreate_db:
runs-on: dspace-dep-1
timeout-minutes: 5
env:
INSTANCE: ${{ inputs.INSTANCE }}
runs-on: dspace-dep-1
steps:

- name: stop and remove containers
Expand Down

0 comments on commit b081241

Please sign in to comment.