Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #622 from Financial-Times/use-main-branch
Browse files Browse the repository at this point in the history
CPP-442 Upgrade GitHub repos from `master` to `main #256
  • Loading branch information
emortong authored Jan 29, 2021
2 parents 74d7c4d + 7bf93f2 commit fde8aa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ references:
restore_cache:
<<: *npm_cache_keys

filters_only_master: &filters_only_master
filters_only_main: &filters_only_main
branches:
only: master
only: main

filters_ignore_tags: &filters_ignore_tags
tags:
Expand Down Expand Up @@ -165,7 +165,7 @@ workflows:
- schedule:
cron: "0 0 * * *"
filters:
<<: *filters_only_master
<<: *filters_only_main
jobs:
- build:
context: next-nightly-build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Commands:
configure [options] [source] [target] gets environment variables from Vault and uploads them to the current app
deploy-static [options] <source> [otherSources...] Deploys static <source> to S3. Requires AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env vars
run [options] Runs the local app through the router
rebuild [options] [apps...] Trigger a rebuild of the latest master on Circle
rebuild [options] [apps...] DEPRECATED. Trigger a rebuild of the latest master on Circle
gtg [app] Runs gtg checks for an app
review-app [options] [appName] Create or find an existing heroku review app and print out the app name. [appName] is the package.json name (which is also the value of VAULT_NAME). On the first build of a branch, Heroku will create a review app with a build. On subsequent builds, Heroku will automatically generate a new build, which this task looks for. See https://devcenter.heroku.com/articles/review-apps-beta for more details of the internals
upload-assets-to-s3 [options] Uploads a folder of assets to an S3 bucket
Expand Down
6 changes: 0 additions & 6 deletions lib/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ module.exports = {
'test';
},

isMasterBranch: () => {
return process.env.CIRCLE_BRANCH === 'master' ||
process.env.GIT_BRANCH === 'master' ||
(!process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_BRANCH === 'master');
},

url: (appName) => {
let host = appName || 'http://local.ft.com:3002';
if (!/:|\./.test(host)) {
Expand Down

0 comments on commit fde8aa7

Please sign in to comment.