Commit d70b7b00 authored by Oky Rahmanto's avatar Oky Rahmanto

testing deployment .gitlab-ci.yml

parent 5560c225
Pipeline #22731 failed with stages
in 3 minutes and 29 seconds
......@@ -12,25 +12,25 @@ 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:
......@@ -42,15 +42,15 @@ deploy:
- sshpass -p '$PASSWORD' -v scp -r /bin/Release/netcoreapp2.2/*.* $USER@$URL:/var/www/dotnet
#- 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