Skip to content

Commit 7b0db8d

Browse files
committed
Update deploy.yml (DSpace#461)
Use .env file from the dev5 instead of createing a new one in the github action
1 parent 7987993 commit 7b0db8d

1 file changed

Lines changed: 4 additions & 29 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,15 @@ jobs:
3333
if: github.event.inputs.INSTANCE == '*' || github.event.inputs.INSTANCE == '5'
3434
runs-on: dspace-dep-1
3535
timeout-minutes: 5
36+
env:
37+
INSTANCE: '5'
38+
ENVFILE: /opt/dspace-envs/.env.dspace.dev-5
3639
steps:
3740
- uses: actions/checkout@v4
3841

3942
- name: deploy to dev-5
4043
run: |
41-
cd $GITHUB_WORKSPACE/build-scripts/run/
42-
pwd
43-
44-
touch .env.dev-5 || true
45-
echo INSTANCE=5 >> .env.dev-5
46-
echo DSPACE_HOST=dev-5.pc >> .env.dev-5
47-
echo DSPACE_VER=dspace-7_x >> .env.dev-5
48-
echo DSPACE_SSL=false >> .env.dev-5
49-
echo DOCKER_OWNER=dataquest >> .env.dev-5
50-
echo DSPACE_UI_IMAGE=\${DOCKER_OWNER}/dspace-angular:\$DSPACE_VER >> .env.dev-5
51-
echo DSPACE_REST_IMAGE=\${DOCKER_OWNER}/dspace:\$DSPACE_VER >> .env.dev-5
52-
echo DSPACE_REST_PORT=8\$INSTANCE >> .env.dev-5
53-
echo REST_URL=http://\${DSPACE_HOST}:\${DSPACE_REST_PORT}/server >> .env.dev-5
54-
echo UI_URL=http://\${DSPACE_HOST}:\${DSPACE_REST_PORT} >> .env.dev-5
55-
56-
echo S3_STORAGE=1 >> .env.dev-5
57-
echo S3_ENABLED=true >> .env.dev-5
58-
echo S3_RELATIVE_PATH=true >> .env.dev-5
59-
echo S3_BUCKET=testbucket >> .env.dev-5
60-
echo S3_SUBFOLDER=eighty-five >> .env.dev-5
61-
echo S3_ACCESS=${{ secrets.AMAZON_ACCESS }} >> .env.dev-5
62-
echo S3_SECRET=${{ secrets.AMAZON_SECRET }} >> .env.dev-5
63-
echo S3_REGION_NAME=eu-central-1 >> .env.dev-5
64-
echo S3_ENDPOINT=https://s3.cl4.du.cesnet.cz >> env.dev-5
65-
66-
echo NODE_ENV=production >> .env.dev-5
67-
68-
export ENVFILE=$(pwd)/.env.dev-5
69-
./start.sh dspace-5
44+
./start.sh dspace-$INSTANCE
7045
7146
deploy-8:
7247
if: github.event.inputs.INSTANCE == '*' || github.event.inputs.INSTANCE == '8'

0 commit comments

Comments
 (0)