Skip to content

Commit

Permalink
Merge pull request #2440 from sul-dlss/update-branch-name
Browse files Browse the repository at this point in the history
Update branch name to main
  • Loading branch information
dnoneill committed Jun 19, 2024
2 parents a3782d1 + c0a0ef3 commit 7c0e587
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 28 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@ name: CI

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

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2', '3.3']
ruby: ["3.2", "3.3"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-202103-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-202103
- name: Bundle install
run: bundle config path vendor/bundle
- name: Use sidekiq pro
env:
BUNDLE_GEMS__CONTRIBSYS__COM: ${{ secrets.BUNDLE_GEMS__CONTRIBSYS__COM }}
run: bundle config --local gems.contribsys.com ${BUNDLE_GEMS__CONTRIBSYS__COM}
- name: Install dependencies
run: bin/setup && bin/rails db:test:prepare
- name: Run tests
run: bundle exec rake
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-202103-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-202103
- name: Bundle install
run: bundle config path vendor/bundle
- name: Use sidekiq pro
env:
BUNDLE_GEMS__CONTRIBSYS__COM: ${{ secrets.BUNDLE_GEMS__CONTRIBSYS__COM }}
run: bundle config --local gems.contribsys.com ${BUNDLE_GEMS__CONTRIBSYS__COM}
- name: Install dependencies
run: bin/setup && bin/rails db:test:prepare
- name: Run tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline {
}

when {
branch 'master'
branch 'main'
}

steps {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# SUL Spotlight Exhibit

The project's `master` branch provides a template Spotlight application with SUL branding and functionality.
The project's `main` branch provides a template Spotlight application with SUL branding and functionality.

## Configuration

Expand Down
8 changes: 6 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
set :application, 'spotlight'
set :repo_url, 'https://github.com/sul-dlss/exhibits.git'

# Default branch is :master
ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call unless ENV['DEPLOY']
# Default branch is :master so we need to update to main
if ENV['DEPLOY']
set :branch, 'main'
else
ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
end

# Default deploy_to directory is /var/www/my_app
set :deploy_to, "/opt/app/exhibits/exhibits"
Expand Down

0 comments on commit 7c0e587

Please sign in to comment.