mirror of
https://gitlab.acidiclight.dev/sociallydistant/sociallydistant.git
synced 2025-01-22 17:41:49 -05:00
Optimize how many times we build the game on a new container
This commit is contained in:
parent
7785481efd
commit
d4d2fa9575
1 changed files with 12 additions and 17 deletions
|
@ -15,18 +15,27 @@ check_signoff:
|
||||||
build_base:
|
build_base:
|
||||||
stage: build
|
stage: build
|
||||||
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
|
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
|
||||||
script:
|
before_script:
|
||||||
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
|
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
|
||||||
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
||||||
|
- mkdir bin
|
||||||
|
script:
|
||||||
- dotnet build -c release src
|
- dotnet build -c release src
|
||||||
|
after_script:
|
||||||
|
- dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
|
||||||
|
artifacts:
|
||||||
|
name: "socially-distant-linux-amd64-$CI_COMMIT_REF_SLUG"
|
||||||
|
paths:
|
||||||
|
- bin/linux-x64
|
||||||
|
|
||||||
pages:
|
update_online_manual:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
|
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
|
||||||
script:
|
before_script:
|
||||||
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
|
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
|
||||||
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
||||||
- dotnet tool update -g docfx
|
- dotnet tool update -g docfx
|
||||||
|
script:
|
||||||
- export PATH="$PATH:$HOME/.dotnet/tools"
|
- export PATH="$PATH:$HOME/.dotnet/tools"
|
||||||
- docfx
|
- docfx
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -34,17 +43,3 @@ pages:
|
||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
|
||||||
publish_linux:
|
|
||||||
stage: deploy
|
|
||||||
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
|
|
||||||
script:
|
|
||||||
- mkdir bin;
|
|
||||||
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
|
|
||||||
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
|
||||||
- dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
|
|
||||||
artifacts:
|
|
||||||
name: socially-distant-linux-amd64-release
|
|
||||||
paths:
|
|
||||||
- bin/linux-x64
|
|
||||||
|
|
Loading…
Reference in a new issue