Skip to content

Commit b115600

Browse files
cstyantlinhart
authored andcommitted
update drone.yml based on tomas' changes
Signed-off-by: Callum Styan <[email protected]>
1 parent e83c664 commit b115600

File tree

1 file changed

+66
-1
lines changed

1 file changed

+66
-1
lines changed

.drone/drone.yml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,10 @@ trigger:
965965
depends_on:
966966
- check
967967
kind: pipeline
968-
name: lambda-promtail
968+
name: lambda-promtail-amd64
969+
platform:
970+
arch: amd64
971+
os: linux
969972
steps:
970973
- commands:
971974
- apk add --no-cache bash git
@@ -1021,6 +1024,68 @@ trigger:
10211024
- push
10221025
- pull_request
10231026
---
1027+
depends_on:
1028+
- check
1029+
kind: pipeline
1030+
name: lambda-promtail-arm64
1031+
platform:
1032+
arch: arm64
1033+
os: linux
1034+
steps:
1035+
- commands:
1036+
- apk add --no-cache bash git
1037+
- git fetch origin --tags
1038+
- echo $(./tools/image-tag)-arm64 > .tags
1039+
- echo ",main" >> .tags
1040+
image: alpine
1041+
name: image-tag
1042+
- depends_on:
1043+
- image-tag
1044+
image: cstyan/ecr
1045+
name: build-lambda-promtail-image
1046+
privileged: true
1047+
settings:
1048+
access_key:
1049+
from_secret: ecr_key
1050+
dockerfile: tools/lambda-promtail/Dockerfile
1051+
dry_run: true
1052+
region: us-east-1
1053+
registry: public.ecr.aws/grafana
1054+
repo: public.ecr.aws/grafana/lambda-promtail
1055+
secret_key:
1056+
from_secret: ecr_secret_key
1057+
when:
1058+
ref:
1059+
exclude:
1060+
- refs/heads/main
1061+
- refs/heads/k??
1062+
- refs/tags/v*
1063+
- depends_on:
1064+
- image-tag
1065+
image: cstyan/ecr
1066+
name: publish-lambda-promtail-image
1067+
privileged: true
1068+
settings:
1069+
access_key:
1070+
from_secret: ecr_key
1071+
dockerfile: tools/lambda-promtail/Dockerfile
1072+
dry_run: false
1073+
region: us-east-1
1074+
registry: public.ecr.aws/grafana
1075+
repo: public.ecr.aws/grafana/lambda-promtail
1076+
secret_key:
1077+
from_secret: ecr_secret_key
1078+
when:
1079+
ref:
1080+
include:
1081+
- refs/heads/main
1082+
- refs/heads/k??
1083+
- refs/tags/v*
1084+
trigger:
1085+
event:
1086+
- push
1087+
- pull_request
1088+
---
10241089
get:
10251090
name: pat
10261091
path: infra/data/ci/github/grafanabot

0 commit comments

Comments
 (0)