forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.47 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# DSpace Docker deploy on dataquest servers
name: Deploy DSpace
on:
workflow_dispatch:
jobs:
deploy:
runs-on: dspace-dep-1
steps:
- uses: actions/checkout@v3
with:
submodules: false
- name: deploy
run: |
cd $GITHUB_WORKSPACE/build-scripts/run/
pwd
touch .env.dev-5 || true
echo INSTANCE=5 >> .env.dev-5
echo DSPACE_HOST=dev-5.pc >> .env.dev-5
echo DSPACE_VER=customer-TUL >> .env.dev-5
echo DSPACE_SSL=false >> .env.dev-5
echo DOCKER_OWNER=dataquest >> .env.dev-5
echo DSPACE_UI_IMAGE=${DOCKER_OWNER}/dspace-angular:$DSPACE_VER >> .env.dev-5
echo DSPACE_REST_IMAGE=${DOCKER_OWNER}/dspace:$DSPACE_VER >> .env.dev-5
echo DSPACE_REST_PORT=8$INSTANCE >> .env.dev-5
echo REST_URL=http://${DSPACE_HOST}:${DSPACE_REST_PORT}/server >> .env.dev-5
echo UI_URL=http://${DSPACE_HOST}:400$INSTANCE >> .env.dev-5
echo S3_STORAGE=1 >> .env.dev-5
echo S3_ENABLED=true >> .env.dev-5
echo S3_RELATIVE_PATH=true >> .env.dev-5
echo S3_BUCKET=dev-5-dspace >> .env.dev-5
echo S3_SUBFOLDER=seven-five >> .env.dev-5
echo S3_ACCESS=${{ secrets.AMAZON_ACCESS }} >> .env.dev-5
echo S3_SECRET=${{ secrets.AMAZON_SECRET }} >> .env.dev-5
echo S3_REGION_NAME=eu-central-1 >> .env.dev-5
export ENVFILE=$(pwd)/.env.dev-5
./start.sh dspace-5