A
A
AspMaster2019-03-21 21:06:29
ASP.NET
AspMaster, 2019-03-21 21:06:29

Why don't files appear after gitlab ci/cd?

Used gitlab to deliver and deploy the project on Ubuntu. Wrote the following yml:

image: microsoft/dotnet:latest

stages:
    - publish

publish:
    stage: publish
    script:
        - "dotnet publish --configuration Release --output '/home/user/publish/test'"

GitLab indicated that everything was successful, but these files did not appear on the server. What could be the problem?
Here is the information about executing in git:
$ dotnet publish --configuration Release --output '/home/user/publish/test'
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restoring packages for /builds/Saharman/testing/TestingTest/TestingTest.csproj...
  Installing Microsoft.IdentityModel.Logging 5.2.0.
  ...
  //установка различных пакетов
 ...
  Installing Microsoft.AspNetCore.SignalR 1.0.1.
  Installing Microsoft.AspNetCore.SpaServices.Extensions 2.1.1.
  Installing Microsoft.AspNetCore.Server.HttpSys 2.1.1.
  Installing Microsoft.AspNetCore.Mvc.Localization 2.1.1.
  Installing Microsoft.AspNetCore.ResponseCaching 2.1.1.
  Installing Microsoft.AspNetCore.Mvc.DataAnnotations 2.1.1.
  Installing Microsoft.AspNetCore.Mvc.Formatters.Xml 2.1.1.
  Installing Microsoft.AspNetCore.Owin 2.1.1.
  Installing Microsoft.AspNetCore.Mvc.Cors 2.1.1.
  Installing Microsoft.Extensions.Configuration.Xml 2.1.1.
  Generating MSBuild file /builds/SecretLogin/testing/TestingTest/obj/TestingTest.csproj.nuget.g.props.
  Generating MSBuild file /builds/SecretLogin/testing/TestingTest/obj/TestingTest.csproj.nuget.g.targets.
  Restore completed in 4.5 sec for /builds/SecretLogin/testing/TestingTest/TestingTest.csproj.
  TestingTest -> /builds/SecretLogin/testing/TestingTest/bin/Release/netcoreapp2.1/TestingTest.dll
  TestingTest -> /builds/SecretLogin/testing/TestingTest/bin/Release/netcoreapp2.1/TestingTest.Views.dll
  TestingTest -> /home/user/publish/test/
Job succeeded

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2019-03-22
@AspMaster

You called me. I'm not familiar with the dotnet ecosystem, but I'll assume that he builds the project and hosts it locally.
You do this in a docker container, it is hosted in a container, not on some server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question