Commit a7e3cd68 authored by Jason Ouellet's avatar Jason Ouellet

Update .gitlab-ci.yml

parent be68ba64
Pipeline #11176 failed with stages
image: docker:stable
image: microsoft/dotnet:latest
services:
- docker:dind
stages:
- build
- test
variables:
test: "tests"
before_script:
- docker info
- "cd src"
- "dotnet restore"
build:
only:
- master
before_script:
- docker login registry.gitlab.com -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD}
script:
- docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest .
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest
after_script:
- docker logout ${CI_REGISTRY}
stage: build
script:
- "dotnet build"
test:
stage: test
script:
- "cd $test"
- "dotnet test"
Markdown is supported
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