Commit 3d5e861f authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

deploy debugging

parent 4de51f13
Pipeline #9794 passed with stage
in 24 seconds
......@@ -8,65 +8,65 @@ variables:
POSTGRES_DB: doorcode
stages:
- build
- test
# - build
# - test
- deploy
build_web_backend:
stage: build
script:
- src/backend/install-dev.sh
artifacts:
paths:
- src/backend/vendor
- src/backend/.env
- src/backend/composer.lock
# Currently set to build timeout
expire_in: 1 hour
build_web_frontend:
stage: build
script:
- 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
script:
- cd src/backend
- vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no
test_web_backend_unit:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Unit
test_web_backend_feature:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Feature
test_web_backend_database:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Database
#build_web_backend:
# stage: build
# script:
# - src/backend/install-dev.sh
# artifacts:
# paths:
# - src/backend/vendor
# - src/backend/.env
# - src/backend/composer.lock
# # Currently set to build timeout
# expire_in: 1 hour
#
#build_web_frontend:
# stage: build
# script:
# - 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
# script:
# - cd src/backend
# - vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no
#
#test_web_backend_unit:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Unit
#
#test_web_backend_feature:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Feature
#
#test_web_backend_database:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Database
deploy_backend_production:
stage: deploy
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY"
- echo "$SSH_PRIVATE_KEY | base64 -d -w 0"
- ssh-add <(echo "${SSH_PRIVATE_KEY}" | base64 -d -w 0)
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY"
- echo "${SSH_PRIVATE_KEY}"
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- SSH_COMMAND_STRING="cd doorcode && bin/deploy-update.sh"
......
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