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 protobuf-lint: stage: test image: name: docker.io/bufbuild/buf:latest entrypoint: [""] script: - cd api/ - buf ls-files - buf lint nuget-publish: stage: release only: refs: - tags script: - dotnet tool restore - dotnet nuke NuGetPush