mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Cirrus: Fixes due to master->main rename
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -74,7 +74,7 @@ PODMAN_SERVER_LOG=$CIRRUS_WORKING_DIR/server.log
|
||||
# Defaults when not running under CI
|
||||
export CI="${CI:-false}"
|
||||
CIRRUS_CI="${CIRRUS_CI:-false}"
|
||||
DEST_BRANCH="${DEST_BRANCH:-master}"
|
||||
DEST_BRANCH="${DEST_BRANCH:-main}"
|
||||
CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}"
|
||||
CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman}
|
||||
# Cirrus only sets $CIRRUS_BASE_SHA properly for PRs, but $EPOCH_TEST_COMMIT
|
||||
|
||||
@ -16,7 +16,7 @@ fi
|
||||
# HEAD should be good enough, but the CIRRUS envariable allows us to test
|
||||
head=${CIRRUS_CHANGE_IN_REPO:-HEAD}
|
||||
# Base of this PR. Here we absolutely rely on cirrus.
|
||||
base=$(git merge-base ${DEST_BRANCH:-master} $head)
|
||||
base=$(git merge-base ${DEST_BRANCH:-main} $head)
|
||||
|
||||
# This gives us a list of files touched in all commits, e.g.
|
||||
# A foo.c
|
||||
|
||||
@ -145,9 +145,9 @@ function _run_swagger() {
|
||||
elif [[ -n "$CIRRUS_TAG" ]]; then
|
||||
upload_bucket="libpod-master-releases"
|
||||
upload_filename="swagger-$CIRRUS_TAG.yaml"
|
||||
elif [[ "$CIRRUS_BRANCH" == "master" ]]; then
|
||||
elif [[ "$CIRRUS_BRANCH" == "main" ]]; then
|
||||
upload_bucket="libpod-master-releases"
|
||||
# readthedocs versioning uses "latest" for "master" (default) branch
|
||||
# readthedocs versioning uses "latest" for "main" (default) branch
|
||||
upload_filename="swagger-latest.yaml"
|
||||
elif [[ -n "$CIRRUS_BRANCH" ]]; then
|
||||
upload_bucket="libpod-master-releases"
|
||||
|
||||
Reference in New Issue
Block a user