From b0e5eb395920d6a5caf84a55f00b2dee6b5892e1 Mon Sep 17 00:00:00 2001 From: Oky Rahmanto <23519010@std.stei.itb.ac.id> Date: Wed, 11 Mar 2020 00:01:47 +0700 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 54 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e9f28fa..28223588 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 -- GitLab