如何使用.gitlab-ci.yaml将.net应用程序点网部署到远程服务器?

时间:2020-01-14 18:44:39

标签: gitlab gitlab-ci gitlab-ci-runner dotnet-publish

我正在尝试通过.net.gitlab-ci.yaml应用程序部署到远程服务器,但是还没有发现有用的东西。我想使用用户名/密码和ssh键来探索选项。请指导。这是我的工作yaml文件,没有远程部署

image : microsoft/dotnet:latest

stages:
  - build
  - test
  - release

build:
  stage: build
  script:
    - dotnet build

test:
  stage: test
  script:
    - dotnet test

release:
  stage: release
  only:
    - master
  artifacts:
    paths:
      - publish/
  script:
    - dotnet publish -c Release -o ../publish MyApp/MyApp.csproj

0 个答案:

没有答案