Skip to content

Commit 011e353

Browse files
committed
feat: push docker images to GAR repository
This is to support the migration to Mozcloud. We'll do this in parallel with pushes to dockerhub to avoid one pipeline busting the other. I've dropped support for the archive tags here, because as far as I know we've never made use of them.
1 parent 468bdd1 commit 011e353

File tree

1 file changed

+73
-0
lines changed
  • taskcluster/kinds/push-image-gar

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
---
5+
6+
loader: taskgraph.loader.transform:loader
7+
8+
kind-dependencies:
9+
- docker-image
10+
11+
transforms:
12+
- taskgraph.transforms.task_context
13+
- taskgraph.transforms.run
14+
- taskgraph.transforms.task
15+
16+
task-defaults:
17+
description: Push {name} {docker_tag} docker image to GAR
18+
worker-type: images
19+
task-context:
20+
from-parameters:
21+
head_rev: head_rev
22+
head_repo: head_repository
23+
docker_tag: docker_tag
24+
moz_build_date: moz_build_date
25+
substitution-fields:
26+
- description
27+
- dependencies.image
28+
- worker.env
29+
- run-on-git-branches
30+
dependencies:
31+
image: docker-image-{name}
32+
worker:
33+
taskcluster-proxy: true
34+
docker-image: {in-tree: skopeo}
35+
max-run-time: 1800
36+
env:
37+
VCS_HEAD_REPOSITORY: "{head_repo}"
38+
APP: "{name}"
39+
DOCKER_REPO: "{name}"
40+
VCS_HEAD_REV: "{head_rev}"
41+
DOCKER_TAG: "{docker_tag}"
42+
run-on-tasks-for: [github-push]
43+
run-on-git-branches:
44+
- ^dev$
45+
- ^production$
46+
- ^dev-{name}$
47+
- ^production-{name}$
48+
run:
49+
using: run-task
50+
checkout: false
51+
command:
52+
- /usr/local/bin/push_image_gar.sh
53+
fetches:
54+
image:
55+
- artifact: image.tar.zst
56+
extract: false
57+
scopes:
58+
- secrets:get:project/releng/scriptworker-scripts/deploy
59+
60+
tasks:
61+
addonscript: {}
62+
balrogscript: {}
63+
bitrisescript: {}
64+
beetmoverscript: {}
65+
bouncerscript: {}
66+
githubscript: {}
67+
landoscript: {}
68+
pushapkscript: {}
69+
pushflatpakscript: {}
70+
pushmsixscript: {}
71+
shipitscript: {}
72+
signingscript: {}
73+
treescript: {}

0 commit comments

Comments
 (0)