client-dotnet/.gitlab-ci.yml

45 lines
993 B
YAML
Raw Normal View History

image: mcr.microsoft.com/dotnet/sdk:6.0
stages:
- test
- release
variables:
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_CERT_PATH: "/certs/client"
DOCKER_TLS_VERIFY: 1
DOCKER_HOST: 'tcp://docker:2376'
test:
stage: test
services:
- docker:dind
variables:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/docker
script:
- curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.4.tgz | tar -xzv -C /usr/local/
- mkdir /usr/local/share/ca-certificates/docker-ca
- cp "${DOCKER_CERT_PATH}/ca.pem" /usr/local/share/ca-certificates/docker-ca/
- update-ca-certificates --fresh
- dotnet tool restore
- dotnet nuke Test
2021-02-21 16:25:37 +00:00
protobuf-lint:
stage: test
image:
name: docker.io/bufbuild/buf:latest
entrypoint: [""]
script:
- cd api/
- buf ls-files
- buf lint
2021-02-22 14:10:34 +00:00
nuget-publish:
stage: release
only:
refs:
- tags
script:
- dotnet tool restore
2021-02-22 15:26:04 +00:00
- dotnet nuke NuGetPush