@@ -83,13 +83,6 @@ steps:
8383 - grabpl
8484 image : grafana/build-container:1.6.3
8585 name : yarn-install
86- - commands :
87- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
88- depends_on : []
89- environment :
90- CGO_ENABLED : 0
91- image : golang:1.19.2
92- name : compile-build-cmd
9386- commands :
9487 - yarn betterer ci
9588 depends_on :
@@ -931,13 +924,6 @@ steps:
931924 - grabpl
932925 image : grafana/build-container:1.6.3
933926 name : yarn-install
934- - commands :
935- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
936- depends_on : []
937- environment :
938- CGO_ENABLED : 0
939- image : golang:1.19.2
940- name : compile-build-cmd
941927- commands :
942928 - yarn betterer ci
943929 depends_on :
@@ -2263,13 +2249,6 @@ steps:
22632249 - grabpl
22642250 image : grafana/build-container:1.6.3
22652251 name : yarn-install
2266- - commands :
2267- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
2268- depends_on : []
2269- environment :
2270- CGO_ENABLED : 0
2271- image : golang:1.19.2
2272- name : compile-build-cmd
22732252- commands :
22742253 - yarn betterer ci
22752254 depends_on :
@@ -2930,13 +2909,6 @@ steps:
29302909 - grabpl
29312910 image : grafana/build-container:1.6.3
29322911 name : yarn-install
2933- - commands :
2934- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
2935- depends_on : []
2936- environment :
2937- CGO_ENABLED : 0
2938- image : golang:1.19.2
2939- name : compile-build-cmd
29402912- commands :
29412913 - yarn betterer ci
29422914 depends_on :
@@ -2983,13 +2955,39 @@ platform:
29832955 os : linux
29842956services : []
29852957steps :
2958+ - commands :
2959+ - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
2960+ - cd grafana-enterprise
2961+ - git checkout ${DRONE_TAG}
2962+ environment :
2963+ GITHUB_TOKEN :
2964+ from_secret : github_token
2965+ image : grafana/build-container:1.6.3
2966+ name : clone-enterprise
2967+ - commands :
2968+ - mv bin/grabpl /tmp/
2969+ - rmdir bin
2970+ - mv grafana-enterprise /tmp/
2971+ - /tmp/grabpl init-enterprise --github-token $${GITHUB_TOKEN} /tmp/grafana-enterprise
2972+ ${DRONE_TAG}
2973+ - mv /tmp/grafana-enterprise/deployment_tools_config.json deployment_tools_config.json
2974+ - mkdir bin
2975+ - mv /tmp/grabpl bin/
2976+ depends_on :
2977+ - clone-enterprise
2978+ environment :
2979+ GITHUB_TOKEN :
2980+ from_secret : github_token
2981+ image : grafana/build-container:1.6.3
2982+ name : init-enterprise
29862983- commands :
29872984 - echo $DRONE_RUNNER_NAME
29882985 image : alpine:3.15.6
29892986 name : identify-runner
29902987- commands :
29912988 - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
2992- depends_on : []
2989+ depends_on :
2990+ - init-enterprise
29932991 environment :
29942992 CGO_ENABLED : 0
29952993 image : golang:1.19.2
@@ -3052,6 +3050,31 @@ platform:
30523050 os : linux
30533051services : []
30543052steps :
3053+ - commands :
3054+ - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
3055+ - cd grafana-enterprise
3056+ - git checkout ${DRONE_TAG}
3057+ environment :
3058+ GITHUB_TOKEN :
3059+ from_secret : github_token
3060+ image : grafana/build-container:1.6.3
3061+ name : clone-enterprise
3062+ - commands :
3063+ - mv bin/grabpl /tmp/
3064+ - rmdir bin
3065+ - mv grafana-enterprise /tmp/
3066+ - /tmp/grabpl init-enterprise --github-token $${GITHUB_TOKEN} /tmp/grafana-enterprise
3067+ ${DRONE_TAG}
3068+ - mv /tmp/grafana-enterprise/deployment_tools_config.json deployment_tools_config.json
3069+ - mkdir bin
3070+ - mv /tmp/grabpl bin/
3071+ depends_on :
3072+ - clone-enterprise
3073+ environment :
3074+ GITHUB_TOKEN :
3075+ from_secret : github_token
3076+ image : grafana/build-container:1.6.3
3077+ name : init-enterprise
30553078- commands :
30563079 - echo $DRONE_RUNNER_NAME
30573080 image : alpine:3.15.6
@@ -4257,13 +4280,6 @@ steps:
42574280 - grabpl
42584281 image : grafana/build-container:1.6.3
42594282 name : yarn-install
4260- - commands :
4261- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
4262- depends_on : []
4263- environment :
4264- CGO_ENABLED : 0
4265- image : golang:1.19.2
4266- name : compile-build-cmd
42674283- commands :
42684284 - yarn betterer ci
42694285 depends_on :
@@ -4885,13 +4901,6 @@ steps:
48854901 - grabpl
48864902 image : grafana/build-container:1.6.3
48874903 name : yarn-install
4888- - commands :
4889- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
4890- depends_on : []
4891- environment :
4892- CGO_ENABLED : 0
4893- image : golang:1.19.2
4894- name : compile-build-cmd
48954904- commands :
48964905 - yarn betterer ci
48974906 depends_on :
@@ -4932,13 +4941,36 @@ platform:
49324941 os : linux
49334942services : []
49344943steps :
4944+ - commands :
4945+ - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
4946+ - cd grafana-enterprise
4947+ - git checkout ${DRONE_BRANCH}
4948+ environment :
4949+ GITHUB_TOKEN :
4950+ from_secret : github_token
4951+ image : grafana/build-container:1.6.3
4952+ name : clone-enterprise
4953+ - commands :
4954+ - mv bin/grabpl /tmp/
4955+ - rmdir bin
4956+ - mv grafana-enterprise /tmp/
4957+ - /tmp/grabpl init-enterprise /tmp/grafana-enterprise
4958+ - mv /tmp/grafana-enterprise/deployment_tools_config.json deployment_tools_config.json
4959+ - mkdir bin
4960+ - mv /tmp/grabpl bin/
4961+ depends_on :
4962+ - clone-enterprise
4963+ environment : {}
4964+ image : grafana/build-container:1.6.3
4965+ name : init-enterprise
49354966- commands :
49364967 - echo $DRONE_RUNNER_NAME
49374968 image : alpine:3.15.6
49384969 name : identify-runner
49394970- commands :
49404971 - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
4941- depends_on : []
4972+ depends_on :
4973+ - init-enterprise
49424974 environment :
49434975 CGO_ENABLED : 0
49444976 image : golang:1.19.2
@@ -4995,6 +5027,28 @@ platform:
49955027 os : linux
49965028services : []
49975029steps :
5030+ - commands :
5031+ - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
5032+ - cd grafana-enterprise
5033+ - git checkout ${DRONE_BRANCH}
5034+ environment :
5035+ GITHUB_TOKEN :
5036+ from_secret : github_token
5037+ image : grafana/build-container:1.6.3
5038+ name : clone-enterprise
5039+ - commands :
5040+ - mv bin/grabpl /tmp/
5041+ - rmdir bin
5042+ - mv grafana-enterprise /tmp/
5043+ - /tmp/grabpl init-enterprise /tmp/grafana-enterprise
5044+ - mv /tmp/grafana-enterprise/deployment_tools_config.json deployment_tools_config.json
5045+ - mkdir bin
5046+ - mv /tmp/grabpl bin/
5047+ depends_on :
5048+ - clone-enterprise
5049+ environment : {}
5050+ image : grafana/build-container:1.6.3
5051+ name : init-enterprise
49985052- commands :
49995053 - echo $DRONE_RUNNER_NAME
50005054 image : alpine:3.15.6
@@ -5494,6 +5548,6 @@ kind: secret
54945548name : packages_secret_access_key
54955549---
54965550kind : signature
5497- hmac : 0a4cc4cfd81481dbb25b9ccfc22ddd4ad23bbaa1b775e5c64aba2533ccfe1676
5551+ hmac : 82dedf98f127a4d16c71b668d9a2df17502c109cc6ff0ab01e770547250135e7
54985552
54995553...
0 commit comments