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
- test
- release
- docker
- deploy
cache:
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
@ -74,4 +76,38 @@ release:
- 'dotnet publish -c Release --runtime linux-musl-x64 -o build'
artifacts:
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"`"'