@@ -71,18 +71,10 @@ steps:
71
71
- echo $DRONE_RUNNER_NAME
72
72
image : alpine:3.20.3
73
73
name : identify-runner
74
- - commands :
75
- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
76
- depends_on : []
77
- environment :
78
- CGO_ENABLED : 0
79
- image : golang:1.23.1-alpine
80
- name : compile-build-cmd
81
74
- commands :
82
75
- go install github.com/bazelbuild/buildtools/buildifier@latest
83
76
- buildifier --lint=warn -mode=check -r .
84
- depends_on :
85
- - compile-build-cmd
77
+ depends_on : []
86
78
image : golang:1.23.1-alpine
87
79
name : lint-starlark
88
80
trigger :
@@ -1278,13 +1270,6 @@ platform:
1278
1270
os : linux
1279
1271
services : []
1280
1272
steps :
1281
- - commands :
1282
- - go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
1283
- depends_on : []
1284
- environment :
1285
- CGO_ENABLED : 0
1286
- image : golang:1.23.1-alpine
1287
- name : compile-build-cmd
1288
1273
- commands :
1289
1274
- apt-get update -yq && apt-get install shellcheck
1290
1275
- shellcheck -e SC1071 -e SC2162 scripts/**/*.sh
@@ -3434,31 +3419,32 @@ steps:
3434
3419
- |2-
3435
3420
3436
3421
bash -c '
3422
+ IMAGE_TAG=$(echo "$${TAG}" | sed -e "s/+/-/g")
3437
3423
debug=
3438
3424
if [[ -n $${DRY_RUN} ]]; then debug=echo; fi
3439
3425
docker login -u $${DOCKER_USER} -p $${DOCKER_PASSWORD}
3440
3426
3441
3427
# Push the grafana-image-tags images
3442
- $$debug docker push grafana/grafana-image-tags:$${TAG }-amd64
3443
- $$debug docker push grafana/grafana-image-tags:$${TAG }-arm64
3444
- $$debug docker push grafana/grafana-image-tags:$${TAG }-armv7
3445
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-amd64
3446
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-arm64
3447
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3428
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-amd64
3429
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-arm64
3430
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3431
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64
3432
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64
3433
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3448
3434
3449
3435
# Create the grafana manifests
3450
- $$debug docker manifest create grafana/grafana:${TAG} grafana/grafana-image-tags:$${TAG }-amd64 grafana/grafana-image-tags:$${TAG }-arm64 grafana/grafana-image-tags:$${TAG }-armv7
3436
+ $$debug docker manifest create grafana/grafana:${TAG} grafana/grafana-image-tags:$${IMAGE_TAG }-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3451
3437
3452
- $$debug docker manifest create grafana/grafana:${TAG}-ubuntu grafana/grafana-image-tags:$${TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3438
+ $$debug docker manifest create grafana/grafana:${TAG}-ubuntu grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3453
3439
3454
3440
# Push the grafana manifests
3455
- $$debug docker manifest push grafana/grafana:$${TAG }
3456
- $$debug docker manifest push grafana/grafana:$${TAG }-ubuntu
3441
+ $$debug docker manifest push grafana/grafana:$${IMAGE_TAG }
3442
+ $$debug docker manifest push grafana/grafana:$${IMAGE_TAG }-ubuntu
3457
3443
3458
3444
# if LATEST is set, then also create & push latest
3459
3445
if [[ -n $${LATEST} ]]; then
3460
- $$debug docker manifest create grafana/grafana:latest grafana/grafana-image-tags:$${TAG }-amd64 grafana/grafana-image-tags:$${TAG }-arm64 grafana/grafana-image-tags:$${TAG }-armv7
3461
- $$debug docker manifest create grafana/grafana:latest-ubuntu grafana/grafana-image-tags:$${TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3446
+ $$debug docker manifest create grafana/grafana:latest grafana/grafana-image-tags:$${IMAGE_TAG }-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3447
+ $$debug docker manifest create grafana/grafana:latest-ubuntu grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3462
3448
3463
3449
$$debug docker manifest push grafana/grafana:latest
3464
3450
$$debug docker manifest push grafana/grafana:latest-ubuntu
@@ -3565,31 +3551,32 @@ steps:
3565
3551
- |2-
3566
3552
3567
3553
bash -c '
3554
+ IMAGE_TAG=$(echo "$${TAG}" | sed -e "s/+/-/g")
3568
3555
debug=
3569
3556
if [[ -n $${DRY_RUN} ]]; then debug=echo; fi
3570
3557
docker login -u $${DOCKER_USER} -p $${DOCKER_PASSWORD}
3571
3558
3572
3559
# Push the grafana-image-tags images
3573
- $$debug docker push grafana/grafana-image-tags:$${TAG }-amd64
3574
- $$debug docker push grafana/grafana-image-tags:$${TAG }-arm64
3575
- $$debug docker push grafana/grafana-image-tags:$${TAG }-armv7
3576
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-amd64
3577
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-arm64
3578
- $$debug docker push grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3560
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-amd64
3561
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-arm64
3562
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3563
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64
3564
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64
3565
+ $$debug docker push grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3579
3566
3580
3567
# Create the grafana manifests
3581
- $$debug docker manifest create grafana/grafana:${TAG} grafana/grafana-image-tags:$${TAG }-amd64 grafana/grafana-image-tags:$${TAG }-arm64 grafana/grafana-image-tags:$${TAG }-armv7
3568
+ $$debug docker manifest create grafana/grafana:${TAG} grafana/grafana-image-tags:$${IMAGE_TAG }-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3582
3569
3583
- $$debug docker manifest create grafana/grafana:${TAG}-ubuntu grafana/grafana-image-tags:$${TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3570
+ $$debug docker manifest create grafana/grafana:${TAG}-ubuntu grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3584
3571
3585
3572
# Push the grafana manifests
3586
- $$debug docker manifest push grafana/grafana:$${TAG }
3587
- $$debug docker manifest push grafana/grafana:$${TAG }-ubuntu
3573
+ $$debug docker manifest push grafana/grafana:$${IMAGE_TAG }
3574
+ $$debug docker manifest push grafana/grafana:$${IMAGE_TAG }-ubuntu
3588
3575
3589
3576
# if LATEST is set, then also create & push latest
3590
3577
if [[ -n $${LATEST} ]]; then
3591
- $$debug docker manifest create grafana/grafana:latest grafana/grafana-image-tags:$${TAG }-amd64 grafana/grafana-image-tags:$${TAG }-arm64 grafana/grafana-image-tags:$${TAG }-armv7
3592
- $$debug docker manifest create grafana/grafana:latest-ubuntu grafana/grafana-image-tags:$${TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${TAG }-ubuntu-armv7
3578
+ $$debug docker manifest create grafana/grafana:latest grafana/grafana-image-tags:$${IMAGE_TAG }-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-armv7
3579
+ $$debug docker manifest create grafana/grafana:latest-ubuntu grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-amd64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-arm64 grafana/grafana-image-tags:$${IMAGE_TAG }-ubuntu-armv7
3593
3580
3594
3581
$$debug docker manifest push grafana/grafana:latest
3595
3582
$$debug docker manifest push grafana/grafana:latest-ubuntu
@@ -3681,7 +3668,8 @@ steps:
3681
3668
image : golang:1.23.1-alpine
3682
3669
name : compile-build-cmd
3683
3670
- commands :
3684
- - ./bin/build artifacts packages --tag $${DRONE_TAG} --src-bucket $${PRERELEASE_BUCKET}
3671
+ - ./bin/build artifacts packages --artifacts-editions=oss --tag $${DRONE_TAG} --src-bucket
3672
+ $${PRERELEASE_BUCKET}
3685
3673
depends_on :
3686
3674
- compile-build-cmd
3687
3675
environment :
@@ -3691,19 +3679,6 @@ steps:
3691
3679
from_secret : prerelease_bucket
3692
3680
image : grafana/grafana-ci-deploy:1.3.3
3693
3681
name : publish-artifacts
3694
- - commands :
3695
- - ./bin/build artifacts static-assets --tag ${DRONE_TAG} --static-asset-editions=grafana-oss
3696
- depends_on :
3697
- - compile-build-cmd
3698
- environment :
3699
- GCP_KEY :
3700
- from_secret : gcp_grafanauploads_base64
3701
- PRERELEASE_BUCKET :
3702
- from_secret : prerelease_bucket
3703
- STATIC_ASSET_EDITIONS :
3704
- from_secret : static_asset_editions
3705
- image : grafana/grafana-ci-deploy:1.3.3
3706
- name : publish-static-assets
3707
3682
- commands :
3708
3683
- ./bin/build artifacts storybook --tag ${DRONE_TAG}
3709
3684
depends_on :
@@ -3723,7 +3698,6 @@ steps:
3723
3698
-f latest=$${LATEST} --repo=grafana/grafana release-pr.yml
3724
3699
depends_on :
3725
3700
- publish-artifacts
3726
- - publish-static-assets
3727
3701
environment :
3728
3702
GH_CLI_URL : https://github.com/cli/cli/releases/download/v2.50.0/gh_2.50.0_linux_amd64.tar.gz
3729
3703
GITHUB_TOKEN :
@@ -6013,6 +5987,6 @@ kind: secret
6013
5987
name : gcr_credentials
6014
5988
---
6015
5989
kind : signature
6016
- hmac : e618274ea7a8bfbf3d5e151d459348aa9382fe63fe7fef76c997db3cba74779f
5990
+ hmac : dc30a3a00ee542fb289da36ef6db4274684db4533c472f7f903468919d1046ac
6017
5991
6018
5992
...
0 commit comments