| [ |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", |
| "--path", |
| "[START_DIR]/dart_docker", |
| "--url", |
| "https://github.com/dart-lang/dart_docker.git" |
| ], |
| "name": "git setup" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "origin", |
| "master", |
| "--progress" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "env": { |
| "PATH": "RECIPE_REPO[depot_tools]:<PATH>" |
| }, |
| "infra_step": true, |
| "name": "git fetch" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "FETCH_HEAD" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "infra_step": true, |
| "name": "git checkout" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "infra_step": true, |
| "name": "read revision", |
| "~followup_annotations": [ |
| "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "infra_step": true, |
| "name": "git clean" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "infra_step": true, |
| "name": "submodule sync" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init", |
| "--recursive" |
| ], |
| "cwd": "[START_DIR]/dart_docker", |
| "infra_step": true, |
| "name": "submodule update" |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cloudkms", |
| "-ensure-file", |
| "infra/tools/luci/cloudkms/${platform} latest", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "cwd": "[CLEANUP]", |
| "env": { |
| "DOCKER_CONFIG": "[CLEANUP]/.docker" |
| }, |
| "name": "ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/cloudkms/resolved-platform\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[depot_tools::gsutil]/resources/gsutil_smart_retry.py", |
| "--", |
| "RECIPE_REPO[depot_tools]/gsutil.py", |
| "----", |
| "cp", |
| "gs://dart-ci-credentials/dockerhub.encrypted", |
| "dockerhub.encrypted" |
| ], |
| "cwd": "[CLEANUP]", |
| "env": { |
| "DOCKER_CONFIG": "[CLEANUP]/.docker" |
| }, |
| "infra_step": true, |
| "name": "gsutil download" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cloudkms/cloudkms", |
| "decrypt", |
| "-input", |
| "dockerhub.encrypted", |
| "-output", |
| "[CLEANUP]/dockerhub.key", |
| "projects/dart-ci/locations/us-central1/keyRings/dart-ci/cryptoKeys/dart-ci" |
| ], |
| "cwd": "[CLEANUP]", |
| "env": { |
| "DOCKER_CONFIG": "[CLEANUP]/.docker" |
| }, |
| "name": "cloudkms get key" |
| }, |
| { |
| "cmd": [ |
| "/bin/bash", |
| "-c", |
| "cat [CLEANUP]/dockerhub.key | /usr/bin/docker login --username dartbot --password-stdin" |
| ], |
| "cwd": "[CLEANUP]", |
| "env": { |
| "DOCKER_CONFIG": "[CLEANUP]/.docker" |
| }, |
| "name": "docker login" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/dart_docker/build_push.sh", |
| "google", |
| "stable", |
| "1.24.3" |
| ], |
| "env": { |
| "DOCKER_CONFIG": "[CLEANUP]/.docker" |
| }, |
| "name": "build and push" |
| }, |
| { |
| "name": "$result" |
| } |
| ] |