mirror of https://github.com/status-im/consul.git
Merge pull request #10196 from hashicorp/backport-ci-changes
[1.8.x] Backport CI changes
This commit is contained in:
parent
322bac84a1
commit
655468ad88
|
@ -746,8 +746,21 @@ jobs:
|
||||||
"https://circleci.com/api/v1.1/project/github/hashicorp/consul-enterprise/tree/${CIRCLE_BRANCH}" | jq -r '.build_url'
|
"https://circleci.com/api/v1.1/project/github/hashicorp/consul-enterprise/tree/${CIRCLE_BRANCH}" | jq -r '.build_url'
|
||||||
- run: *notify-slack-failure
|
- 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:
|
workflows:
|
||||||
version: 2
|
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:
|
go-tests:
|
||||||
jobs:
|
jobs:
|
||||||
- check-vendor: &filter-ignore-non-go-branches
|
- check-vendor: &filter-ignore-non-go-branches
|
||||||
|
@ -886,3 +899,4 @@ workflows:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
- /release\/\d+\.\d+\.x$/
|
||||||
|
|
|
@ -95,10 +95,11 @@ if [[ "$ret" -ne 0 ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
# loop through all labels on the PR
|
||||||
for label in $labels; do
|
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"
|
status "checking label: $label"
|
||||||
# TODO: enable this when replatform is merged into stable-website
|
# 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
|
# if the label matches docs-cherrypick, it will attempt to cherry-pick to stable-website
|
||||||
|
|
Loading…
Reference in New Issue