Skip to content

Commit

Permalink
try fixing drone again (#5826) (#5827)
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Welch <[email protected]>
(cherry picked from commit cc3a8e4)
  • Loading branch information
slim-bean authored Apr 7, 2022
1 parent 32122eb commit 2d9d0ee
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local pipeline(name) = {
kind: 'pipeline',
name: name,
steps: [],
trigger: { event: ['push', 'pull_request'] },
trigger: { event: ['push', 'pull_request', 'tag'] },
};

local secret(name, vault_path, vault_key) = {
Expand Down
73 changes: 72 additions & 1 deletion .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ trigger:
event:
- push
- pull_request
- tag
workspace:
base: /src
path: loki
Expand Down Expand Up @@ -96,6 +97,7 @@ trigger:
event:
- push
- pull_request
- tag
workspace:
base: /src
path: loki
Expand All @@ -113,6 +115,7 @@ trigger:
event:
- push
- pull_request
- tag
workspace:
base: /src
path: loki
Expand Down Expand Up @@ -263,6 +266,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -390,6 +394,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -517,6 +522,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -572,6 +578,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -627,6 +634,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -682,6 +690,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -738,6 +747,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -794,6 +804,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -850,6 +861,64 @@ trigger:
event:
- push
- pull_request
- tag
---
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/loki-query-tee
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/loki-query-tee
username:
from_secret: docker_username
when:
ref:
include:
- refs/heads/main
- refs/heads/k??
- refs/tags/v*
trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- docker-amd64
Expand Down Expand Up @@ -964,6 +1033,7 @@ trigger:
event:
- push
- pull_request
- tag
---
depends_on:
- check
Expand Down Expand Up @@ -1023,6 +1093,7 @@ trigger:
event:
- push
- pull_request
- tag
---
get:
name: pat
Expand Down Expand Up @@ -1067,6 +1138,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: 20f2dd84e89dff07703d4a7c84c0b0d267b6082745025804bc91a26c4a180779
hmac: a96f66baa9057be9437904081ef78fa7c1584d855ba1c90d22a0bcb4eb0881f7

...

1 comment on commit 2d9d0ee

@darxriggs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this was tagged in git as v2.5.0 but no release on GitHub was created.

Please sign in to comment.