crosvm/ci/kokoro/build-push-to-github.sh
Keiichi Watanabe 610158aa55 ci: kokoro: push-to-github: Use git push --all instead of --mirror
Unlike git push --mirror, git push --all won't delete remote branch so
that gh-pages branch won't be removed by kokoro, I think.

BUG=b:199692764
TEST=none

Change-Id: I2a5ce2f59e966775d24c25b996a1091af1d6efc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3234557
Auto-Submit: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2021-10-20 16:06:04 +00:00

11 lines
391 B
Bash
Executable file

#!/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)
cd "${KOKORO_ARTIFACTS_DIR}/git/crosvm"
git push --force --all "https://crosvm-bot:${TOKEN}@github.com/google/crosvm.git"