Skip to content

Commit

Permalink
Remove master from CI config/scripts (#3421)
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling authored Dec 2, 2021
1 parent 7872d1b commit 5015a36
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 80 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci-all-in-one-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Build all-in-one

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
all-in-one:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Build binaries

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
build-binaries:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT Cassandra

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
cassandra:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-crossdock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT Crossdock

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
crossdock:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Build docker images

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
docker-images:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT Elasticsearch

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
elasticsearch:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-grpc-badger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT gRPC And Badger

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
grpc-and-badger:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-hotrod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT Hotrod

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
hotrod:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: CIT Kafka

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
kafka:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-protogen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Protogen Validation

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
protogen:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Unit Tests

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
unit-tests:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ name: "CodeQL"

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

schedule:
- cron: '31 6 * * 1'

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: FOSSA

on:
push:
branches:
- master
- main
branches: [main]

pull_request:
branches:
- master
- main
branches: [main]

jobs:
fossa-license-scan:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-crossdock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COMMIT=${GITHUB_SHA::8}
make build-and-run-crossdock

# Only push images to dockerhub/quay.io for the main branch
if [[ $BRANCH == "master" || "$BRANCH" == "main" ]]; then
if [[ "$BRANCH" == "main" ]]; then
echo 'upload images to dockerhub/quay.io'
REPO=jaegertracing/test-driver
IMAGE_TAGS=$(bash scripts/compute-tags.sh $REPO)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-upload-a-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [[ "${local_test_only}" = "Y" ]]; then
PUSHTAG="type=image, push=true"
else
# Only push multi-arch images to dockerhub/quay.io for main branch or for release tags vM.N.P
if [[ "$BRANCH" == "master" || "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "build docker images and upload to dockerhub/quay.io, BRANCH=$BRANCH"
bash scripts/docker-login.sh
PUSHTAG="type=image, push=true"
Expand Down

0 comments on commit 5015a36

Please sign in to comment.