Add basic docker test in pipeline
This commit is contained in:
parent
1134cce777
commit
103cb5f1ea
@ -77,8 +77,9 @@ release:
|
|||||||
paths:
|
paths:
|
||||||
- build/*
|
- build/*
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
docker:
|
||||||
|
stage: docker
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- ChaosBot/**/*
|
- ChaosBot/**/*
|
||||||
@ -90,9 +91,21 @@ deploy:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- release
|
- release
|
||||||
script:
|
script:
|
||||||
- 'apk add lftp openssh-client curl jq'
|
- docker info
|
||||||
- 'mkdir ~/.ssh'
|
|
||||||
- 'ssh-keyscan -p 2302 seanstoves.com >> ~/.ssh/known_hosts'
|
|
||||||
- 'echo "LFTP needs to be fixed"'
|
deploy:
|
||||||
- 'lftp sftp://$SFTP_USER:$SFTP_PASS@$SFTP_HOST -e "mirror -X .* -X .*/ -X *.db -X appsettings.json --reverse --verbose --delete --parallel=8 ../build/ ./; bye"'
|
stage: deploy
|
||||||
# - '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"`"'
|
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