-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab_ci.yml
43 lines (37 loc) · 968 Bytes
/
.gitlab_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
stages:
- build
- test
- deploy
image: microsoft/dotnet:latest
before_script:
- apt-get update && apt-get install sshpass
variables:
BUILD_ARTIFACT_PATH: "$CI_PROJECT_DIR/app"
build_job:
stage: build
script:
- echo $CI_PROJECT_DIR
- cd $CI_PROJECT_DIR
- dotnet publish -c Release -o $BUILD_ARTIFACT_PATH $CI_PROJECT_DIR/Rsoi1/Rsoi1.csproj
artifacts:
paths:
- $BUILD_ARTIFACT_PATH
test_job:
stage: build
script:
- cd $CI_PROJECT_DIR/RsoiTests
- dotnet test
deploy_staging:
image: python:3.6
stage: deploy
variables:
dependencies:
- build_job
script:
- apt-get install zip
- pip3 install awscli
- mv Deploy/* .
- zip -j app.zip app/*
- zip application-${CI_PIPELINE_IID}.zip app.zip aws-windows-deployment-manifest.json
- chmod 777 deploy.sh
- ./deploy.sh elasticbeanstalk-us-west-2-006653641282 application-${CI_PIPELINE_IID}.zip v0.1-${CI_PIPELINE_IID} gullfoss-dev