Retry with docker:stable image
This commit is contained in:
parent
29b8a46f69
commit
7ddaca2e06
@ -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"
|
||||||
@ -74,4 +76,38 @@ release:
|
|||||||
- 'dotnet publish -c Release --runtime linux-musl-x64 -o build'
|
- 'dotnet publish -c Release --runtime linux-musl-x64 -o build'
|
||||||
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"`"'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user