Skip to content
Snippets Groups Projects
Unverified Commit 55d423d0 authored by Alexander Harkness's avatar Alexander Harkness
Browse files

Deploy to azure (on all branches for now)

parent a8efc750
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ stages: ...@@ -8,6 +8,7 @@ stages:
- source_check - source_check
- build - build
- test - test
- deploy
check_format: check_format:
stage: source_check stage: source_check
...@@ -23,8 +24,18 @@ backend_build: ...@@ -23,8 +24,18 @@ backend_build:
stage: build stage: build
script: script:
- npm run build - npm run build
artifacts:
paths:
- .
backend_test: backend_test:
stage: test stage: test
script: script:
- npm test - npm test
deploy:
stage: deploy
script:
- apt-get update -qq && apt-get install -qq zip
- zip -r application.zip * .[^.]*
- curl -X POST -u "$DEPLOYMENT_USERNAME:$DEPLOYMENT_PASSWORD" $DEPLOYMENT_ENDPOINT -T application.zip
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