Update .gitlab-ci.yml

This commit is contained in:
hydrant
2021-04-01 19:35:21 +00:00
parent 165e871476
commit 062c84a1ff

View File

@@ -7,13 +7,13 @@ before_script:
- "git submodule sync --recursive" - "git submodule sync --recursive"
- "git submodule update --init --recursive" - "git submodule update --init --recursive"
build: build:develop:
stage: build stage: build
only: only:
- develop@log-gtav/reallife-gamemode - develop@log-gtav/reallife-gamemode
script: script:
- "dotnet restore" - "dotnet restore"
- "../gm_database_password.sh" - "../gm_dev_database_password.sh"
- "cd ReallifeGamemode.Server/" - "cd ReallifeGamemode.Server/"
- "dotnet build -c Release" - "dotnet build -c Release"
- "cd ../ReallifeGamemode.Client/" - "cd ../ReallifeGamemode.Client/"
@@ -22,4 +22,21 @@ build:
- "cd ../ReallifeGamemode.DataService" - "cd ../ReallifeGamemode.DataService"
- "dotnet publish -c Release -r linux-x64" - "dotnet publish -c Release -r linux-x64"
- "cd ../" - "cd ../"
- "sudo ../gm_copy_build_files.sh" - "sudo ../gm_dev_copy_build_files.sh"
build:master:
stage: build
only:
- master@log-gtav/reallife-gamemode
script:
- "dotnet restore"
- "../gm_live_database_password.sh"
- "cd ReallifeGamemode.Server/"
- "dotnet build -c Release"
- "cd ../ReallifeGamemode.Client/"
- "npm ci"
- "npm run build:server"
- "cd ../ReallifeGamemode.DataService"
- "dotnet publish -c Release -r linux-x64"
- "cd ../"
- "sudo ../gm_live_copy_build_files.sh"