Rename master branch to main (#778)

pull/792/head^2
Liz Rice 4 years ago committed by GitHub
parent 888c912847
commit 06ab5dfc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ before_install:
- gem install --no-document fpm - gem install --no-document fpm
- go get -t -v ./... - go get -t -v ./...
- | - |
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then if [ "$TRAVIS_BRANCH" = "main" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
fi fi
@ -32,7 +32,7 @@ script:
- test -f kube-bench - test -f kube-bench
# Build and push the multi-arch Docker image # Build and push the multi-arch Docker image
- | - |
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then if [ "$TRAVIS_BRANCH" = "main" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
make docker make docker
fi fi

Loading…
Cancel
Save