diff --git a/ci/kokoro/build-push-to-github.sh b/ci/kokoro/build-push-to-github.sh new file mode 100755 index 0000000000..2a474d2484 --- /dev/null +++ b/ci/kokoro/build-push-to-github.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +GITHUB_TOKEN_FILE=$KOKORO_KEYSTORE_DIR/76320_github_token +TOKEN=$(cat $GITHUB_TOKEN_FILE) + +git push --mirror "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git" diff --git a/ci/kokoro/push-to-github.cfg b/ci/kokoro/push-to-github.cfg new file mode 100644 index 0000000000..2ab07995dc --- /dev/null +++ b/ci/kokoro/push-to-github.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "crosvm/ci/kokoro/build-push-to-github.sh" + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 76320 + keyname: "github_token" + backend: "blade:keystore-fastconfigpush" + } + } +}