Skip to content

Commit

Permalink
internal/update-deploy-s3-props (#448)
Browse files Browse the repository at this point in the history
* Update deploying customer/uk - there weren't right S3 properties.
  • Loading branch information
milanmajchrak authored Feb 15, 2024
1 parent 55f13b2 commit 033211d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ jobs:
- name: deploy to dev-5
working-directory: build-scripts/run/
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=dspace-7_x >> .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}:\${DSPACE_REST_PORT} >> .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=testbucket >> .env.dev-5
echo S3_SUBFOLDER=dtq-test >> .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=us-east-1 >> .env.dev-5
echo S3_ENDPOINT=CHANGE ME >> .env.dev-5
export ENVFILE=$(pwd)/.env.dev-5
./start.sh dspace-$INSTANCE
deploy-8:
Expand All @@ -66,7 +92,6 @@ jobs:
/bin/bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://dev-5.pc:8$INSTANCE/server/api)" != "200" ]]; do sleep 5; done'
import-8:
runs-on: dspace-dep-1
if: github.event.inputs.IMPORT == 'true'
Expand Down

0 comments on commit 033211d

Please sign in to comment.