mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Merge pull request #10827 from cevich/master_to_main
Cirrus: Fixes due to master->main rename
This commit is contained in:
@ -6,7 +6,7 @@ env:
|
||||
#### Global variables used for all tasks
|
||||
####
|
||||
# Name of the ultimate destination branch for this CI run, PR or post-merge.
|
||||
DEST_BRANCH: "master"
|
||||
DEST_BRANCH: "main"
|
||||
# Overrides default location (/tmp/cirrus) for repo clone
|
||||
GOPATH: &gopath "/var/tmp/go"
|
||||
GOBIN: "${GOPATH}/bin"
|
||||
|
4
Makefile
4
Makefile
@ -25,12 +25,12 @@ export GOPROXY=https://proxy.golang.org
|
||||
GO ?= go
|
||||
COVERAGE_PATH ?= .coverage
|
||||
DESTDIR ?=
|
||||
EPOCH_TEST_COMMIT ?= $(shell git merge-base $${DEST_BRANCH:-master} HEAD)
|
||||
EPOCH_TEST_COMMIT ?= $(shell git merge-base $${DEST_BRANCH:-main} HEAD)
|
||||
HEAD ?= HEAD
|
||||
CHANGELOG_BASE ?= HEAD~
|
||||
CHANGELOG_TARGET ?= HEAD
|
||||
PROJECT := github.com/containers/podman
|
||||
GIT_BASE_BRANCH ?= origin/master
|
||||
GIT_BASE_BRANCH ?= origin/main
|
||||
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
||||
GIT_BRANCH_CLEAN ?= $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
|
||||
LIBPOD_INSTANCE := libpod_dev
|
||||
|
@ -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"
|
||||
|
@ -16,7 +16,7 @@ valid_args() {
|
||||
|
||||
# `git describe` will never produce a useful version number under all
|
||||
# branches. This is because the podman release process (see `RELEASE_PROCESS.md`)
|
||||
# tags release versions only on release-branches (i.e. never on master).
|
||||
# tags release versions only on release-branches (i.e. never on main).
|
||||
# Scraping the version number directly from the source, is the only way
|
||||
# to reliably obtain the number from all the various contexts supported by
|
||||
# the `Makefile`.
|
||||
|
@ -61,7 +61,7 @@ dev_version_commit()
|
||||
}
|
||||
|
||||
git fetch origin &&
|
||||
git checkout -b "bump-${VERSION}" origin/master &&
|
||||
git checkout -b "bump-${VERSION}" origin/main &&
|
||||
release_commit &&
|
||||
git tag -s -m "version ${VERSION}" "v${VERSION}" &&
|
||||
dev_version_commit
|
||||
|
Reference in New Issue
Block a user