Commit b0e5eb39 authored by Oky Rahmanto's avatar Oky Rahmanto

Update .gitlab-ci.yml

parent c725eaa7
Pipeline #22746 failed with stage
......@@ -12,26 +12,26 @@ default:
- cd SIX/SIX/SIX.Web
stages:
# - build
# - test
- build
- test
- deploy
# - release
- release
#build:
# tags:
# - ci-cd
# stage: build
# script:
build:
tags:
- ci-cd
stage: build
script:
# - pwd
# - dotnet build
- dotnet build
test:
tags:
- ci-cd
stage: test
script:
- dotnet test
#test:
# tags:
# - ci-cd
# stage: test
# script:
# - dotnet test
deploy:
tags:
- ci-cd
......@@ -45,15 +45,15 @@ deploy:
- sshpass -p "$PASSWORD" ssh $USER@$URL 'service six7 stop; service six7 start;'
#- dotnet-sshdeploy push -f netcoreapp2.2 -t "$TARGET_PATH" -h $URL -w $PASSWORD -u $USER -p $PORT -v
#release:
# tags:
# - ci-cd
# stage: release
# only:
# - release
# artifacts:
# paths:
# - publish/
# script:
# - dotnet publish -c Release -o ../publish /SIX/SIX/SIX.Web/SIX.Web.csproj
release:
tags:
- ci-cd
stage: release
only:
- release
artifacts:
paths:
- publish/
script:
- dotnet publish -c Release -o ../publish /SIX/SIX/SIX.Web/SIX.Web.csproj
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment