Use github token available for PRs

This commit is contained in:
dsotirakis
2022-10-05 17:17:29 +03:00
parent 32534c4e5d
commit 3d33c1c8b0
2 changed files with 9 additions and 7 deletions
+7 -5
View File
@@ -362,7 +362,8 @@ steps:
image: grafana/build-container:1.6.2
name: yarn-install
- commands:
- git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1
- git clone "https://$${GITHUB_TOKEN}@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}
@@ -376,7 +377,7 @@ steps:
DOWNSTREAM_REPO:
from_secret: downstream
GITHUB_TOKEN:
from_secret: github_token
from_secret: github_token_pr
TEST_TAG: v0.0.0-test
failure: ignore
image: grafana/build-container:1.6.2
@@ -1222,7 +1223,8 @@ steps:
image: grafana/build-container:1.6.2
name: yarn-install
- commands:
- git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1
- git clone "https://$${GITHUB_TOKEN}@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}
@@ -1236,7 +1238,7 @@ steps:
DOWNSTREAM_REPO:
from_secret: downstream
GITHUB_TOKEN:
from_secret: github_token
from_secret: github_token_pr
TEST_TAG: v0.0.0-test
failure: ignore
image: grafana/build-container:1.6.2
@@ -5326,6 +5328,6 @@ kind: secret
name: packages_secret_access_key
---
kind: signature
hmac: e27e9edb142704ae4e5bdd205123d75c0c1ad5944ae2956847a0b4b411b325eb
hmac: 31fbe97765960b69214b14b9a2514ff7f6441a4e6d18636c47e7e0989a896fde
...
+2 -2
View File
@@ -1198,12 +1198,12 @@ def trigger_test_release():
'name': 'trigger-test-release',
'image': build_image,
'environment': {
'GITHUB_TOKEN': from_secret('github_token'),
'GITHUB_TOKEN': from_secret('github_token_pr'),
'DOWNSTREAM_REPO': from_secret('downstream'),
'TEST_TAG': 'v0.0.0-test',
},
'commands': [
'git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1',
'git clone "https://$${GITHUB_TOKEN}@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}',