From 11f490622399a4995a4822d218bb8c5f085bc55e Mon Sep 17 00:00:00 2001 From: Paul Rogers <129207811+paul1r@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:10:27 -0400 Subject: [PATCH] Publish tagged images of loki-canary-boringcrypto (#10386) **What this PR does / why we need it**: Examining the images contained in the loki-canary repo ( https://hub.docker.com/repository/docker/grafana/loki-canary/tags?page=1&ordering=last_updated ) compared to the loki-canary-boringcrypto repo ( https://hub.docker.com/repository/docker/grafana/loki-canary-boringcrypto/tags?page=1&ordering=last_updated ), it appears that the explicitly tagged images (such as 'main') are not being sent to the boringcrypto repo. This PR is to adjust that behavior so that both repos receive the same number of builds (one will be boringcrypto enabled, the other will not be) **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Checklist** - [ ] Reviewed the [`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md) guide (**required**) - [ ] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] If the change is worth mentioning in the release notes, add `add-to-release-notes` label - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/setup/upgrade/_index.md` - [ ] For Helm chart changes bump the Helm chart version in `production/helm/loki/Chart.yaml` and update `production/helm/loki/CHANGELOG.md` and `production/helm/loki/README.md`. [Example PR](https://github.com/grafana/loki/commit/d10549e3ece02120974929894ee333d07755d213) --- .drone/drone.jsonnet | 2 +- .drone/drone.yml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.drone/drone.jsonnet b/.drone/drone.jsonnet index 936efdec1c..c33f728538 100644 --- a/.drone/drone.jsonnet +++ b/.drone/drone.jsonnet @@ -695,7 +695,7 @@ local manifest_ecr(apps, archs) = pipeline('manifest-ecr') { fluentd(), logstash(), querytee(), - manifest(['promtail', 'loki', 'loki-canary', 'fluent-bit']) { + manifest(['promtail', 'loki', 'loki-canary', 'fluent-bit', 'loki-canary-boringcrypto']) { trigger+: onTagOrMain, }, manifest_operator('loki-operator') { diff --git a/.drone/drone.yml b/.drone/drone.yml index 7f917ae5e9..eeefc1a27e 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -1427,6 +1427,19 @@ steps: target: fluent-bit username: from_secret: docker_username +- depends_on: + - clone + - manifest-fluent-bit + image: plugins/manifest:1.4.0 + name: manifest-loki-canary-boringcrypto + settings: + ignore_missing: false + password: + from_secret: docker_password + spec: .drone/docker-manifest.tmpl + target: loki-canary-boringcrypto + username: + from_secret: docker_username trigger: event: - push @@ -2003,6 +2016,6 @@ kind: secret name: gpg_private_key --- kind: signature -hmac: fb384b17b46ac77869765efc735c4d389ba33e37d5c584ec93da7b4c6b0387da +hmac: d53b81539e55f3be9f946e7270740c8f6c264ffb4030d7040b2fcb136927606c ...