Commit 64d1810f authored by Teun Kooijman's avatar Teun Kooijman
parents 4885fe5a 41adfbee
Pipeline #738 passed with stages
in 25 seconds
before_script:
stages:
- build
- package
- deploy
variables:
build:
stage: build
script:
- "cd SeriousWebsite"
- "dotnet restore -r linux-x64"
- "dotnet build -c Release -r linux-x64"
only:
refs:
- master
package:
stage: package
script:
- "cd SeriousWebsite"
- "dotnet publish -c Release -r linux-x64 -o ../artifacts/SeriousWebsite/"
artifacts:
name: "SeriousWebsite"
paths:
- artifacts/SeriousWebsite
expire_in: 2 days
only:
refs:
- master
deploy:
stage: deploy
script:
- "cd SeriousWebsite"
- "sudo systemctl stop seriousk-website"
- "sudo cp -r ../artifacts/SeriousWebsite/* /home/applications/kestrel/applications/seriousk/website"
- "sudo systemctl start seriousk-website"
- "sudo systemctl status seriousk-website"
only:
refs:
- master
when: manual
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