Commit 80fae372 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Start on getting assets ready to deploy

parent 133f985f
......@@ -10,6 +10,7 @@ variables:
stages:
- build
- test
- deploy
build_web_backend:
stage: build
......@@ -26,7 +27,13 @@ build_web_backend:
build_web_frontend:
stage: build
script:
- src/frontend/install-dev.sh
- cd src/frontend
- npm install
- npm run build --mode=production --dest=dist
artifacts:
paths:
- src/frontend/dist
expire_in: 30 days
test_php_styles:
stage: test
......@@ -51,3 +58,20 @@ test_web_backend_database:
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Database
deploy_production:
stage: deploy
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d -w 0)
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- SSH_COMMAND_STRING=""
environment:
name: production
url: http://elock.cs.wallawalla.edu
when: manual
only:
- 55-create-deploy-server
.DS_Store
node_modules
/dist
/tests/e2e/reports/
selenium-debug.log
......
*
!.gitignore
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment