diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e9f28fa2f89912ea4ae590ea23773ad5c5cc3b5..28223588b06cf1751552340c775f995e2f2bf028 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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