diff --git a/.drone.yml b/.drone.yml index 56b0bc7f8dc..a713652a492 100644 --- a/.drone.yml +++ b/.drone.yml @@ -361,6 +361,33 @@ steps: - grabpl image: grafana/build-container:1.6.2 name: yarn-install +- commands: + - git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1 + - cd grafana-enterprise + - git fetch origin "refs/tags/*:refs/tags/*" + - git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} + && git push origin $${TEST_TAG} + - cd - + - git fetch origin "refs/tags/*:refs/tags/*" + - git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/grafana.git + - git tag -d $${TEST_TAG} && git push --delete downstream --quiet $${TEST_TAG} && + git tag $${TEST_TAG} && git push downstream $${TEST_TAG} --quiet + environment: + DOWNSTREAM_REPO: + from_secret: downstream + GITHUB_TOKEN: + from_secret: github_token + TEST_TAG: v0.0.0-test + failure: ignore + image: grafana/build-container:1.6.2 + name: trigger-test-release + when: + paths: + include: + - .drone.yml + - pkg/build/** + repo: + - grafana/grafana - failure: ignore image: grafana/drone-downstream name: trigger-enterprise-downstream @@ -1195,15 +1222,14 @@ steps: image: grafana/build-container:1.6.2 name: yarn-install - commands: - - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" - --depth=1 + - git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1 - cd grafana-enterprise - git fetch origin "refs/tags/*:refs/tags/*" - git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} && git push origin $${TEST_TAG} - cd - - git fetch origin "refs/tags/*:refs/tags/*" - - git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/$${DOWNSTREAM_REPO}.git + - git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/grafana.git - git tag -d $${TEST_TAG} && git push --delete downstream --quiet $${TEST_TAG} && git tag $${TEST_TAG} && git push downstream $${TEST_TAG} --quiet environment: @@ -2214,9 +2240,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -2329,9 +2352,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -2437,9 +2457,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -2509,9 +2526,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -2853,9 +2867,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -3010,9 +3021,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -3168,9 +3176,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -3260,9 +3265,6 @@ trigger: - promote ref: - refs/tags/v* - repo: - exclude: - - grafana/grafana type: docker volumes: - host: @@ -5324,6 +5326,6 @@ kind: secret name: packages_secret_access_key --- kind: signature -hmac: 539cf8d41fba415e57c706a53c93b0f92ff3f69c48ba43526ea95ae506690d2d +hmac: e27e9edb142704ae4e5bdd205123d75c0c1ad5944ae2956847a0b4b411b325eb ... diff --git a/scripts/drone/events/release.star b/scripts/drone/events/release.star index 32d02cd94b9..c4f54172fe8 100644 --- a/scripts/drone/events/release.star +++ b/scripts/drone/events/release.star @@ -460,9 +460,6 @@ def release_pipelines(ver_mode='release', trigger=None): ] }, 'ref': ['refs/tags/v*',], - 'repo': { - 'exclude': ['grafana/grafana'], - }, } # The release pipelines include also enterprise ones, so both editions are built for a release. diff --git a/scripts/drone/pipelines/build.star b/scripts/drone/pipelines/build.star index d0f3d3cda58..817350252c5 100644 --- a/scripts/drone/pipelines/build.star +++ b/scripts/drone/pipelines/build.star @@ -53,7 +53,7 @@ def build_e2e(trigger, ver_mode, edition): yarn_install_step(), ] build_steps = [] - if ver_mode == 'main': + if ver_mode == 'main' or ver_mode == 'pr': build_steps.extend([trigger_test_release()]) if ver_mode == 'pr': build_steps.extend([enterprise_downstream_step(edition=edition, ver_mode=ver_mode)]) diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 3cb1f852d91..6305c2e4a84 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -1203,13 +1203,13 @@ def trigger_test_release(): 'TEST_TAG': 'v0.0.0-test', }, 'commands': [ - 'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" --depth=1', + 'git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1', 'cd grafana-enterprise', 'git fetch origin "refs/tags/*:refs/tags/*"', 'git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} && git push origin $${TEST_TAG}', 'cd -', 'git fetch origin "refs/tags/*:refs/tags/*"', - 'git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/$${DOWNSTREAM_REPO}.git', + 'git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/grafana.git', 'git tag -d $${TEST_TAG} && git push --delete downstream --quiet $${TEST_TAG} && git tag $${TEST_TAG} && git push downstream $${TEST_TAG} --quiet', ], 'failure': 'ignore',