Skip to content

Commit

Permalink
Fix drone CI builds for loki operator (grafana#6599)
Browse files Browse the repository at this point in the history
  • Loading branch information
periklis authored Jul 7, 2022
1 parent 9590e5c commit 1b8f609
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 47 deletions.
8 changes: 4 additions & 4 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ local lambda_promtail(arch) = pipeline('lambda-promtail-' + arch) + arch_image(a
depends_on: ['check'],
};

local lokiopertor(arch) = pipeline('lokioperator-' + arch) + arch_image(arch) {
local lokioperator(arch) = pipeline('lokioperator-' + arch) + arch_image(arch) {
steps+: [
// dry run for everything that is not tag or main
docker_operator(arch, 'loki-operator') {
depends_on: ['image-tag'],
when: condition('exclude').tagMain,
when: onPRs,
settings+: {
dry_run: true,
},
Expand All @@ -301,7 +301,7 @@ local lokiopertor(arch) = pipeline('lokioperator-' + arch) + arch_image(arch) {
// publish for tag or main
docker_operator(arch, 'loki-operator') {
depends_on: ['image-tag'],
when: condition('include').tagMain,
when: onTagOrMain,
settings+: {},
},
],
Expand Down Expand Up @@ -535,7 +535,7 @@ local manifest_ecr(apps, archs) = pipeline('manifest-ecr') {
)
for arch in archs
] + [
lokiopertor(arch)
lokioperator(arch)
for arch in archs
] + [
fluentbit(),
Expand Down
74 changes: 31 additions & 43 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,8 @@ steps:
username:
from_secret: docker_username
when:
ref:
exclude:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- pull_request
- depends_on:
- image-tag
image: plugins/docker
Expand All @@ -733,16 +730,15 @@ steps:
username:
from_secret: docker_username
when:
ref:
include:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- push
- tag
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
Expand Down Expand Up @@ -771,11 +767,8 @@ steps:
username:
from_secret: docker_username
when:
ref:
exclude:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- pull_request
- depends_on:
- image-tag
image: plugins/docker
Expand All @@ -789,16 +782,15 @@ steps:
username:
from_secret: docker_username
when:
ref:
include:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- push
- tag
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
Expand Down Expand Up @@ -827,11 +819,8 @@ steps:
username:
from_secret: docker_username
when:
ref:
exclude:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- pull_request
- depends_on:
- image-tag
image: plugins/docker
Expand All @@ -845,16 +834,15 @@ steps:
username:
from_secret: docker_username
when:
ref:
include:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
event:
- push
- tag
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
Expand Down Expand Up @@ -1423,6 +1411,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: 340c892b7147c1735d4a8a8aadbae154a5633484bcf99c7fbf9453726afe9b96
hmac: 2082d23dcc8f69038e55b027f55a8b1fe8bc52b27f07d785db781fc935a434ad

...

0 comments on commit 1b8f609

Please sign in to comment.