Skip to content

Commit e83c664

Browse files
committed
Add support for ARM64 to lambda-promtail drone build job
1 parent 00bd6cc commit e83c664

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.drone/drone.jsonnet

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,9 @@ local promtail(arch) = pipeline('promtail-' + arch) + arch_image(arch) {
229229
depends_on: ['check'],
230230
};
231231

232-
local lambda_promtail(tags='') = pipeline('lambda-promtail') {
232+
local lambda_promtail(arch, tags='') = pipeline('lambda-promtail-' + arch) + arch_image(arch, tags) {
233233
steps+: [
234-
{
235-
name: 'image-tag',
236-
image: 'alpine',
237-
commands: [
238-
'apk add --no-cache bash git',
239-
'git fetch origin --tags',
240-
'echo $(./tools/image-tag)-amd64 > .tags',
241-
] + if tags != '' then ['echo ",%s" >> .tags' % tags] else [],
242-
},
234+
// dry run for everything that is not tag or main
243235
lambda_promtail_ecr('lambda-promtail') {
244236
depends_on: ['image-tag'],
245237
when: condition('exclude').tagMain,
@@ -459,5 +451,5 @@ local manifest(apps) = pipeline('manifest') {
459451
],
460452
},
461453
] + [promtail_win()]
462-
+ [lambda_promtail('main')]
454+
+ [lambda_promtail(arch, 'main') for arch in ['amd64', 'arm64']]
463455
+ [github_secret, pull_secret, docker_username_secret, docker_password_secret, ecr_key, ecr_secret_key, deploy_configuration]

0 commit comments

Comments
 (0)