updated yml file

This commit is contained in:
Maciek Głowacki 2020-11-26 19:18:03 +01:00
parent 5ce9038b71
commit 540bb9486c

View File

@ -9,7 +9,7 @@ build:
script: script:
- echo "Start building App" - echo "Start building App"
- yarn - yarn
- yarn run build - CI= yarn run build
- echo "Build successfully!" - echo "Build successfully!"
artifacts: artifacts:
expire_in: 1 hour expire_in: 1 hour
@ -22,14 +22,14 @@ test:
image: node image: node
script: script:
- echo "Testing App" - echo "Testing App"
- CI=false yarn test --passWithNoTests - CI= yarn test --passWithNoTests
- echo "Test successfully!" - echo "Test successfully!"
deploy_production: deploy_production:
stage: deploy stage: deploy
script: script:
- echo "Deploying to server" - echo "Deploying to server"
- rsync --progress -r build/* --delete root@35.207.132.68:/var/www/plannaplan.pl - rsync --progress -r build/* --delete root@35.207.132.68:/var/www/plannaplan.pl
- echo "Deployed" - echo "Deployed"
only: only:
- master - master