mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Drone: Verify Drone config at beginning of pipelines (#29071)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
28ce2f12ed
commit
113e288668
54
.drone.yml
54
.drone.yml
@ -17,8 +17,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -253,8 +254,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -578,7 +580,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
|
|
||||||
- name: build-windows-installer
|
- name: build-windows-installer
|
||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
@ -627,8 +630,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
environment:
|
environment:
|
||||||
DOCKERIZE_VERSION: 0.6.1
|
DOCKERIZE_VERSION: 0.6.1
|
||||||
|
|
||||||
@ -702,8 +706,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version ${DRONE_TAG}
|
- ./bin/grabpl verify-version ${DRONE_TAG}
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -1000,7 +1005,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
|
|
||||||
- name: build-windows-installer
|
- name: build-windows-installer
|
||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
@ -1050,7 +1056,7 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
@ -1068,6 +1074,7 @@ steps:
|
|||||||
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise ${DRONE_TAG}
|
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise ${DRONE_TAG}
|
||||||
- mkdir bin
|
- mkdir bin
|
||||||
- mv /tmp/grabpl bin/
|
- mv /tmp/grabpl bin/
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version ${DRONE_TAG}
|
- ./bin/grabpl verify-version ${DRONE_TAG}
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -1334,7 +1341,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
- git checkout ${DRONE_TAG}
|
- git checkout ${DRONE_TAG}
|
||||||
@ -1399,8 +1407,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version ${DRONE_TAG}
|
- ./bin/grabpl verify-version ${DRONE_TAG}
|
||||||
environment:
|
environment:
|
||||||
DOCKERIZE_VERSION: 0.6.1
|
DOCKERIZE_VERSION: 0.6.1
|
||||||
@ -1476,8 +1485,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version v7.3.0-test
|
- ./bin/grabpl verify-version v7.3.0-test
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -1764,7 +1774,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
|
|
||||||
- name: build-windows-installer
|
- name: build-windows-installer
|
||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
@ -1814,7 +1825,7 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
@ -1832,6 +1843,7 @@ steps:
|
|||||||
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise
|
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise
|
||||||
- mkdir bin
|
- mkdir bin
|
||||||
- mv /tmp/grabpl bin/
|
- mv /tmp/grabpl bin/
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version v7.3.0-test
|
- ./bin/grabpl verify-version v7.3.0-test
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -2092,7 +2104,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
- git checkout master
|
- git checkout master
|
||||||
@ -2157,8 +2170,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- ./bin/grabpl verify-version v7.3.0-test
|
- ./bin/grabpl verify-version v7.3.0-test
|
||||||
environment:
|
environment:
|
||||||
DOCKERIZE_VERSION: 0.6.1
|
DOCKERIZE_VERSION: 0.6.1
|
||||||
@ -2243,8 +2257,9 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -2485,7 +2500,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
|
|
||||||
- name: build-windows-installer
|
- name: build-windows-installer
|
||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
@ -2531,7 +2547,7 @@ steps:
|
|||||||
image: grafana/build-container:1.2.28
|
image: grafana/build-container:1.2.28
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p bin
|
- mkdir -p bin
|
||||||
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/grabpl
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/grabpl
|
||||||
- chmod +x bin/grabpl
|
- chmod +x bin/grabpl
|
||||||
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
@ -2549,6 +2565,7 @@ steps:
|
|||||||
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise
|
- /tmp/grabpl init-enterprise /tmp/grafana-enterprise
|
||||||
- mkdir bin
|
- mkdir bin
|
||||||
- mv /tmp/grabpl bin/
|
- mv /tmp/grabpl bin/
|
||||||
|
- ./bin/grabpl verify-drone
|
||||||
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
- rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz
|
||||||
@ -2794,7 +2811,8 @@ steps:
|
|||||||
image: grafana/ci-wix:0.1.1
|
image: grafana/ci-wix:0.1.1
|
||||||
commands:
|
commands:
|
||||||
- $$ProgressPreference = "SilentlyContinue"
|
- $$ProgressPreference = "SilentlyContinue"
|
||||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.25/windows/grabpl.exe -OutFile grabpl.exe
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.26/windows/grabpl.exe -OutFile grabpl.exe
|
||||||
|
- .\grabpl.exe verify-drone
|
||||||
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"
|
||||||
- cd grafana-enterprise
|
- cd grafana-enterprise
|
||||||
- git checkout $$env:DRONE_BRANCH
|
- git checkout $$env:DRONE_BRANCH
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
grabpl_version = '0.5.25'
|
grabpl_version = '0.5.26'
|
||||||
build_image = 'grafana/build-container:1.2.28'
|
build_image = 'grafana/build-container:1.2.28'
|
||||||
publish_image = 'grafana/grafana-ci-deploy:1.2.6'
|
publish_image = 'grafana/grafana-ci-deploy:1.2.6'
|
||||||
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
|
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
|
||||||
@ -94,8 +94,9 @@ def init_steps(edition, platform, ver_mode, is_downstream=False, install_deps=Tr
|
|||||||
),
|
),
|
||||||
'chmod +x bin/grabpl',
|
'chmod +x bin/grabpl',
|
||||||
]
|
]
|
||||||
common_cmds = []
|
common_cmds = [
|
||||||
pre_cmds = []
|
'./bin/grabpl verify-drone',
|
||||||
|
]
|
||||||
|
|
||||||
if ver_mode == 'release':
|
if ver_mode == 'release':
|
||||||
common_cmds.append('./bin/grabpl verify-version ${DRONE_TAG}')
|
common_cmds.append('./bin/grabpl verify-version ${DRONE_TAG}')
|
||||||
@ -140,7 +141,7 @@ def init_steps(edition, platform, ver_mode, is_downstream=False, install_deps=Tr
|
|||||||
'from_secret': 'github_token',
|
'from_secret': 'github_token',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'commands': download_grabpl_cmds + pre_cmds + [
|
'commands': download_grabpl_cmds + [
|
||||||
'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"',
|
'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"',
|
||||||
'cd grafana-enterprise',
|
'cd grafana-enterprise',
|
||||||
'git checkout {}'.format(committish),
|
'git checkout {}'.format(committish),
|
||||||
@ -155,7 +156,7 @@ def init_steps(edition, platform, ver_mode, is_downstream=False, install_deps=Tr
|
|||||||
'depends_on': [
|
'depends_on': [
|
||||||
'clone',
|
'clone',
|
||||||
],
|
],
|
||||||
'commands': pre_cmds + [
|
'commands': [
|
||||||
'mv bin/grabpl /tmp/',
|
'mv bin/grabpl /tmp/',
|
||||||
'rmdir bin',
|
'rmdir bin',
|
||||||
'mv grafana-enterprise /tmp/',
|
'mv grafana-enterprise /tmp/',
|
||||||
@ -176,7 +177,7 @@ def init_steps(edition, platform, ver_mode, is_downstream=False, install_deps=Tr
|
|||||||
'environment': {
|
'environment': {
|
||||||
'DOCKERIZE_VERSION': dockerize_version,
|
'DOCKERIZE_VERSION': dockerize_version,
|
||||||
},
|
},
|
||||||
'commands': download_grabpl_cmds + pre_cmds + common_cmds,
|
'commands': download_grabpl_cmds + common_cmds,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -845,7 +846,6 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
|
|||||||
else:
|
else:
|
||||||
source_commit = ' $$env:SOURCE_COMMIT'
|
source_commit = ' $$env:SOURCE_COMMIT'
|
||||||
|
|
||||||
pre_cmds = []
|
|
||||||
sfx = ''
|
sfx = ''
|
||||||
if edition == 'enterprise':
|
if edition == 'enterprise':
|
||||||
sfx = '-enterprise'
|
sfx = '-enterprise'
|
||||||
@ -854,6 +854,7 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
|
|||||||
init_cmds.extend([
|
init_cmds.extend([
|
||||||
'$$ProgressPreference = "SilentlyContinue"',
|
'$$ProgressPreference = "SilentlyContinue"',
|
||||||
'Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v{}/windows/grabpl.exe -OutFile grabpl.exe'.format(grabpl_version),
|
'Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v{}/windows/grabpl.exe -OutFile grabpl.exe'.format(grabpl_version),
|
||||||
|
'.\\grabpl.exe verify-drone',
|
||||||
])
|
])
|
||||||
steps = [
|
steps = [
|
||||||
{
|
{
|
||||||
@ -908,7 +909,7 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
|
|||||||
'from_secret': 'gcp_key',
|
'from_secret': 'gcp_key',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'commands': pre_cmds + installer_commands,
|
'commands': installer_commands,
|
||||||
'depends_on': [
|
'depends_on': [
|
||||||
'initialize',
|
'initialize',
|
||||||
],
|
],
|
||||||
@ -929,6 +930,7 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
|
|||||||
'Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v{}/windows/grabpl.exe -OutFile grabpl.exe'.format(grabpl_version),
|
'Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v{}/windows/grabpl.exe -OutFile grabpl.exe'.format(grabpl_version),
|
||||||
]
|
]
|
||||||
clone_cmds = [
|
clone_cmds = [
|
||||||
|
'.\\grabpl.exe verify-drone',
|
||||||
'git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"',
|
'git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git"',
|
||||||
]
|
]
|
||||||
if not is_downstream:
|
if not is_downstream:
|
||||||
@ -944,7 +946,7 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
|
|||||||
'from_secret': 'github_token',
|
'from_secret': 'github_token',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'commands': download_grabpl_cmds + pre_cmds + clone_cmds,
|
'commands': download_grabpl_cmds + clone_cmds,
|
||||||
})
|
})
|
||||||
steps[1]['depends_on'] = [
|
steps[1]['depends_on'] = [
|
||||||
'clone',
|
'clone',
|
||||||
|
Loading…
Reference in New Issue
Block a user