Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build querytee image as part of CI pipeline #5700

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,30 @@ local promtail_win() = pipeline('promtail-windows') {
],
};

local querytee() = pipeline('querytee-amd64') + arch_image('amd64', 'main') {
steps+: [
// dry run for everything that is not tag or main
docker('amd64', 'querytee') {
depends_on: ['image-tag'],
when: condition('exclude').tagMain,
settings+: {
dry_run: true,
repo: 'grafana/querytee',
},
},
] + [
// publish for tag or main
docker('amd64', 'querytee') {
depends_on: ['image-tag'],
when: condition('include').tagMain,
settings+: {
repo: 'grafana/querytee',
},
},
],
depends_on: ['check'],
};

local fluentbit() = pipeline('fluent-bit-amd64') + arch_image('amd64', 'main') {
steps+: [
// dry run for everything that is not tag or main
Expand Down Expand Up @@ -404,6 +428,7 @@ local manifest(apps) = pipeline('manifest') {
fluentbit(),
fluentd(),
logstash(),
querytee(),
] + [
manifest(['promtail', 'loki', 'loki-canary']) {
trigger: condition('include').tagMain {
Expand Down
58 changes: 57 additions & 1 deletion .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,62 @@ trigger:
- pull_request
---
depends_on:
- check
kind: pipeline
name: querytee-amd64
platform:
arch: amd64
os: linux
steps:
- commands:
- apk add --no-cache bash git
- git fetch origin --tags
- echo $(./tools/image-tag)-amd64 > .tags
- echo ",main" >> .tags
image: alpine
name: image-tag
- depends_on:
- image-tag
image: plugins/docker
name: build-querytee-image
settings:
dockerfile: cmd/querytee/Dockerfile
dry_run: true
password:
from_secret: docker_password
repo: grafana/querytee
username:
from_secret: docker_username
when:
ref:
exclude:
- refs/heads/main
- refs/heads/k??
- refs/tags/v*
- depends_on:
- image-tag
image: plugins/docker
name: publish-querytee-image
settings:
dockerfile: cmd/querytee/Dockerfile
dry_run: false
password:
from_secret: docker_password
repo: grafana/querytee
username:
from_secret: docker_username
when:
ref:
include:
- refs/heads/main
- refs/heads/k??
- refs/tags/v*
trigger:
event:
- push
- pull_request
---
depends_on:
- docker-amd64
- docker-arm64
- docker-arm
Expand Down Expand Up @@ -1045,6 +1101,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: c8daf173159729445944aec4a308e53263b9302e485bca9d26f71ef2ac47ce4b
hmac: d46edb356841403724d7a261f095fcbaf22e0e077e35e9b2e4c8bbad7aa4b77e

...