Merge pull request #10196 from hashicorp/backport-ci-changes

[1.8.x] Backport CI changes
This commit is contained in:
Daniel Nephin 2021-05-06 16:01:48 -04:00 committed by Mike Morris
parent 322bac84a1
commit 655468ad88
2 changed files with 17 additions and 2 deletions

View File

@ -746,8 +746,21 @@ jobs:
"https://circleci.com/api/v1.1/project/github/hashicorp/consul-enterprise/tree/${CIRCLE_BRANCH}" | jq -r '.build_url'
- run: *notify-slack-failure
# The noop job is a used as a very fast job in the verify-ci workflow because every workflow
# requires at least one job. It does nothing.
noop:
docker:
- image: docker.mirror.hashicorp.services/alpine:latest
steps:
- run: 'echo ok'
workflows:
version: 2
# verify-ci is a no-op workflow that must run on every PR. It is used in a
# branch protection rule to detect when CI workflows are not running.
verify-ci:
jobs: [noop]
go-tests:
jobs:
- check-vendor: &filter-ignore-non-go-branches
@ -886,3 +899,4 @@ workflows:
branches:
only:
- master
- /release\/\d+\.\d+\.x$/

View File

@ -95,10 +95,11 @@ if [[ "$ret" -ne 0 ]]; then
exit 0
fi
git config --local user.email "github-team-consul-core@hashicorp.com"
git config --local user.name "hc-github-team-consul-core"
# loop through all labels on the PR
for label in $labels; do
git config --local user.email "github-team-consul-core@hashicorp.com"
git config --local user.name "hc-github-team-consul-core"
status "checking label: $label"
# TODO: enable this when replatform is merged into stable-website
# if the label matches docs-cherrypick, it will attempt to cherry-pick to stable-website