Add basic docker test in pipeline
This commit is contained in:
parent
1134cce777
commit
103cb5f1ea
@ -77,8 +77,9 @@ release:
|
||||
paths:
|
||||
- build/*
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
|
||||
docker:
|
||||
stage: docker
|
||||
only:
|
||||
changes:
|
||||
- ChaosBot/**/*
|
||||
@ -90,9 +91,21 @@ deploy:
|
||||
dependencies:
|
||||
- release
|
||||
script:
|
||||
- 'apk add lftp openssh-client curl jq'
|
||||
- 'mkdir ~/.ssh'
|
||||
- 'ssh-keyscan -p 2302 seanstoves.com >> ~/.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 ../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"`"'
|
||||
- docker info
|
||||
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
only:
|
||||
changes:
|
||||
- ChaosBot/**/*
|
||||
refs:
|
||||
- master
|
||||
tags:
|
||||
- docker
|
||||
- hawkeye
|
||||
dependencies:
|
||||
- docker
|
||||
script:
|
||||
- 'apk add curl jq'
|
||||
- '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