Merge pull request #10827 from cevich/master_to_main

Cirrus: Fixes due to master->main rename
This commit is contained in:
OpenShift Merge Robot
2021-06-30 13:21:23 -04:00
committed by GitHub
7 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@ env:
#### Global variables used for all tasks #### Global variables used for all tasks
#### ####
# Name of the ultimate destination branch for this CI run, PR or post-merge. # 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 # Overrides default location (/tmp/cirrus) for repo clone
GOPATH: &gopath "/var/tmp/go" GOPATH: &gopath "/var/tmp/go"
GOBIN: "${GOPATH}/bin" GOBIN: "${GOPATH}/bin"

View File

@ -25,12 +25,12 @@ export GOPROXY=https://proxy.golang.org
GO ?= go GO ?= go
COVERAGE_PATH ?= .coverage COVERAGE_PATH ?= .coverage
DESTDIR ?= 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 HEAD ?= HEAD
CHANGELOG_BASE ?= HEAD~ CHANGELOG_BASE ?= HEAD~
CHANGELOG_TARGET ?= HEAD CHANGELOG_TARGET ?= HEAD
PROJECT := github.com/containers/podman 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 ?= $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
GIT_BRANCH_CLEAN ?= $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g") GIT_BRANCH_CLEAN ?= $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
LIBPOD_INSTANCE := libpod_dev LIBPOD_INSTANCE := libpod_dev

View File

@ -74,7 +74,7 @@ PODMAN_SERVER_LOG=$CIRRUS_WORKING_DIR/server.log
# Defaults when not running under CI # Defaults when not running under CI
export CI="${CI:-false}" export CI="${CI:-false}"
CIRRUS_CI="${CIRRUS_CI:-false}" CIRRUS_CI="${CIRRUS_CI:-false}"
DEST_BRANCH="${DEST_BRANCH:-master}" DEST_BRANCH="${DEST_BRANCH:-main}"
CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}" CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}"
CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman} CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman}
# Cirrus only sets $CIRRUS_BASE_SHA properly for PRs, but $EPOCH_TEST_COMMIT # Cirrus only sets $CIRRUS_BASE_SHA properly for PRs, but $EPOCH_TEST_COMMIT

View File

@ -16,7 +16,7 @@ fi
# HEAD should be good enough, but the CIRRUS envariable allows us to test # HEAD should be good enough, but the CIRRUS envariable allows us to test
head=${CIRRUS_CHANGE_IN_REPO:-HEAD} head=${CIRRUS_CHANGE_IN_REPO:-HEAD}
# Base of this PR. Here we absolutely rely on cirrus. # 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. # This gives us a list of files touched in all commits, e.g.
# A foo.c # A foo.c

View File

@ -145,9 +145,9 @@ function _run_swagger() {
elif [[ -n "$CIRRUS_TAG" ]]; then elif [[ -n "$CIRRUS_TAG" ]]; then
upload_bucket="libpod-master-releases" upload_bucket="libpod-master-releases"
upload_filename="swagger-$CIRRUS_TAG.yaml" upload_filename="swagger-$CIRRUS_TAG.yaml"
elif [[ "$CIRRUS_BRANCH" == "master" ]]; then elif [[ "$CIRRUS_BRANCH" == "main" ]]; then
upload_bucket="libpod-master-releases" 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" upload_filename="swagger-latest.yaml"
elif [[ -n "$CIRRUS_BRANCH" ]]; then elif [[ -n "$CIRRUS_BRANCH" ]]; then
upload_bucket="libpod-master-releases" upload_bucket="libpod-master-releases"

View File

@ -16,7 +16,7 @@ valid_args() {
# `git describe` will never produce a useful version number under all # `git describe` will never produce a useful version number under all
# branches. This is because the podman release process (see `RELEASE_PROCESS.md`) # 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 # Scraping the version number directly from the source, is the only way
# to reliably obtain the number from all the various contexts supported by # to reliably obtain the number from all the various contexts supported by
# the `Makefile`. # the `Makefile`.

View File

@ -61,7 +61,7 @@ dev_version_commit()
} }
git fetch origin && git fetch origin &&
git checkout -b "bump-${VERSION}" origin/master && git checkout -b "bump-${VERSION}" origin/main &&
release_commit && release_commit &&
git tag -s -m "version ${VERSION}" "v${VERSION}" && git tag -s -m "version ${VERSION}" "v${VERSION}" &&
dev_version_commit dev_version_commit