Skip to content
Snippets Groups Projects
Commit 58d1dcd6 authored by Anatole ROMON's avatar Anatole ROMON
Browse files

Merge branch 'master' of gitlab.binets.fr:br/sigma-backend

parents de6c9836 d3952fda
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,8 @@ build: ...@@ -29,6 +29,8 @@ build:
- npm run build - npm run build
- knex migrate:latest - knex migrate:latest
- knex seed:run - knex seed:run
only:
- master
artifacts: artifacts:
paths: paths:
- ldap_connexion_config.json - ldap_connexion_config.json
...@@ -51,8 +53,10 @@ deploy_staging: ...@@ -51,8 +53,10 @@ deploy_staging:
stage: deploy stage: deploy
script: script:
- npm run build - npm run build
- mkdir -p /opt/sigma-back-dev - ssh-add <(echo "$STAGING_PRIVATE_KEY")
- cp -r build/ /opt/sigma-back-dev/build/ - ssh -p22 sigma-dev@roued "mkdir -p /opt/sigma-back-dev
- ssh -p22 sigma-dev@roued "rm -r /opt/sigma-back-dev/build"
- scp -p22 -r build/ sigma-dev@roued:/opt/sigma-back-dev/build
environment: environment:
name: staging name: staging
url: http://129.104.210.10:3000 url: http://129.104.210.10:3000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment