Skip to content

Commit

Permalink
use the loki-build-image for calling circle, this is the same as what…
Browse files Browse the repository at this point in the history
… the circle job we are replacing did
  • Loading branch information
slim-bean committed Sep 9, 2019
1 parent ec1be49 commit 4384371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,11 @@ local drone = [
steps: [
{
name: "trigger",
image: 'alpine',
image: 'grafana/loki-build-image:%s' % build_image_version,
environment: {
CIRLCE_TOKEN: {from_secret: "circle_token"}
},
commands: [
"apk add --no-cache curl make bash git",
'curl -s --header "Content-Type: application/json" --data "{\"build_parameters\": {\"CIRCLE_JOB\": \"deploy\", \"IMAGE_NAMES\": \"$(make print-images)\"}}" --request POST https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
]
}
Expand Down
3 changes: 1 addition & 2 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,13 @@ kind: pipeline
name: deploy
steps:
- commands:
- apk add --no-cache curl make bash git
- 'curl -s --header "Content-Type: application/json" --data "{"build_parameters":
{"CIRCLE_JOB": "deploy", "IMAGE_NAMES": "$(make print-images)"}}" --request POST
https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
environment:
CIRLCE_TOKEN:
from_secret: circle_token
image: alpine
image: grafana/loki-build-image:0.5.0
name: trigger
trigger:
ref:
Expand Down

0 comments on commit 4384371

Please sign in to comment.