[v10.0.x] : ImagePullSecrets: Add GAR secret to image_pull_secret in .drone.yml (#80916)

`ImagePullSecrets`: Add `GAR` secret to `image_pull_secret` in `.drone.yml` (#80912)

* Add GAR secret to image_pull_secret

* Fix starlark fmt

(cherry picked from commit 65104a7efa)
This commit is contained in:
Dimitris Sotirakis
2024-01-19 19:53:54 +02:00
committed by GitHub
parent 0f4640dc74
commit 0f304efaa7
3 changed files with 98 additions and 46 deletions
+6 -2
View File
@@ -6,7 +6,11 @@ load(
"scripts/drone/steps/lib.star",
"slack_step",
)
load("scripts/drone/vault.star", "pull_secret")
load(
"scripts/drone/vault.star",
"gar_pull_secret",
"gcr_pull_secret",
)
failure_template = "Build {{build.number}} failed for commit: <https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{build.commit}}|{{ truncate build.commit 8 }}>: {{build.link}}\nBranch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>\nAuthor: {{build.author}}"
@@ -83,7 +87,7 @@ def pipeline(
},
],
"depends_on": depends_on,
"image_pull_secrets": [pull_secret],
"image_pull_secrets": [gcr_pull_secret, gar_pull_secret],
}
if environment:
pipeline.update(