Commit 5070bb16 authored by Oky Rahmanto's avatar Oky Rahmanto

Update .gitlab-ci.yml

parent e292cbf2
Pipeline #22763 failed with stages
in 5 minutes and 30 seconds
......@@ -8,7 +8,7 @@ default:
- dpkg -i packages-microsoft-prod.deb
- apt-get install apt-transport-https
- apt-get update
- apt-get install dotnet-sdk-2.2 -y
- apt-get install dotnet-sdk-3.1 -y
- cd SIX/SIX/SIX.Web
......@@ -41,7 +41,7 @@ deploy:
- mkdir ~/.ssh
- ssh-keyscan -H $URL >> ~/.ssh/known_hosts
- dotnet publish -c Release
- sshpass -p "$PASSWORD" -v scp -r bin/Release/netcoreapp2.2/ $USER@$URL:/var/www/dotnet
- sshpass -p "$PASSWORD" -v scp -r bin/Release/netcoreapp3.1/ $USER@$URL:/var/www/dotnet
- 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
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