Retry with docker:stable image

This commit is contained in:
Daniel_I_Am 2020-08-15 19:03:21 -04:00
parent 29b8a46f69
commit 7ddaca2e06

View File

@ -11,6 +11,8 @@ stages:
- build - build
- test - test
- release - release
- docker
- deploy
cache: cache:
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
@ -75,3 +77,37 @@ release:
artifacts: artifacts:
paths: paths:
- build/* - build/*
docker:
image: docker:stable
stage: docker
only:
changes:
- ChaosBot/**/*
refs:
- master
tags:
- docker
- hawkeye
dependencies:
- release
script:
- 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"`"'