Update .gitlab-ci.yml
This commit is contained in:
parent
14237b35c3
commit
ca7f6913a6
@ -43,9 +43,6 @@ build:
|
||||
- hawkeye
|
||||
script:
|
||||
- 'dotnet build --no-restore'
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
|
||||
tests:
|
||||
stage: test
|
||||
@ -71,15 +68,15 @@ release:
|
||||
- master
|
||||
dependencies:
|
||||
- tests
|
||||
artifacts:
|
||||
paths:
|
||||
- publish/
|
||||
tags:
|
||||
- docker
|
||||
- hawkeye
|
||||
script:
|
||||
- 'dotnet publish -c Release -o ../publish ChaosBot/ChaosBot.csproj'
|
||||
|
||||
- 'dotnet publish -c Release -r linux-musl-x64 -o ../build --self-contained true'
|
||||
artifacts:
|
||||
paths:
|
||||
- build/*
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
only:
|
||||
@ -97,5 +94,5 @@ deploy:
|
||||
- 'mkdir ~/.ssh'
|
||||
- 'ssh-keyscan -p 2303 panel.chaoticlogic.us >> ~/.ssh/known_hosts'
|
||||
- 'echo "LFTP needs to be fixed"'
|
||||
# - 'lftp sftp://$SFTP_USER:$SFTP_PASS@$SFTP_HOST -e "mirror -X .* -X .*/ -X *.db -X appsettings.json --reverse --verbose --delete --parallel=8 ../publish/ ./; bye"'
|
||||
- 'lftp sftp://$SFTP_USER:$SFTP_PASS@$SFTP_HOST -e "mirror -X .* -X .*/ -X *.db -X appsettings.json --reverse --verbose --delete --parallel=8 build/ ./; bye"'
|
||||
- 'curl -X POST $API_URI/api/endpoints/$ENDPOINT_URI/docker/containers/$CONTAINER_ID/restart -H "Authorization: Bearer `curl -X POST $API_URI/api/auth -H "Content-Type: application/json" -d "{\"Username\": \"$API_USER\", \"Password\": \"$API_PASS\"}"" | jq -r ".jwt"`"'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user