Fix pipeline skipping in forks (#9165)

pull/9168/head
Julien Duchesne 2 years ago committed by GitHub
parent 0f4a7f4d92
commit 6f83c01c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .drone/drone.jsonnet
  2. 8
      .drone/drone.yml

@ -73,7 +73,7 @@ local make(target, container=true, args=[]) = run(target, [
local skipMissingSecretPipelineStep(secretName) = run(
'skip pipeline if missing secret',
[
'if [ "${#TEST_SECRET}" -eq 0 ]; then',
'if [ "$${#TEST_SECRET}" -eq 0 ]; then',
' echo "Missing a secret to run this pipeline. This branch needs to be re-pushed as a branch in main grafana/loki repository in order to run." && exit 78',
'fi',
],

@ -1419,7 +1419,7 @@ services:
path: /sys/fs/cgroup
steps:
- commands:
- if [ "${#TEST_SECRET}" -eq 0 ]; then
- if [ "$${#TEST_SECRET}" -eq 0 ]; then
- ' echo "Missing a secret to run this pipeline. This branch needs to be re-pushed
as a branch in main grafana/loki repository in order to run." && exit 78'
- fi
@ -1542,7 +1542,7 @@ steps:
image: alpine
name: image-tag
- commands:
- if [ "${#TEST_SECRET}" -eq 0 ]; then
- if [ "$${#TEST_SECRET}" -eq 0 ]; then
- ' echo "Missing a secret to run this pipeline. This branch needs to be re-pushed
as a branch in main grafana/loki repository in order to run." && exit 78'
- fi
@ -1611,7 +1611,7 @@ steps:
image: alpine
name: image-tag
- commands:
- if [ "${#TEST_SECRET}" -eq 0 ]; then
- if [ "$${#TEST_SECRET}" -eq 0 ]; then
- ' echo "Missing a secret to run this pipeline. This branch needs to be re-pushed
as a branch in main grafana/loki repository in order to run." && exit 78'
- fi
@ -1772,6 +1772,6 @@ kind: secret
name: gpg_private_key
---
kind: signature
hmac: 481157ef4226aeafda64e9c66b83938482889e19e190bfe72e06613c84efbfae
hmac: 59c2b7df0660f1b6855eac6b71b4cf8ad62727d6b10314baf48a2ab85bf27463
...

Loading…
Cancel
Save