Skip to content

Commit

Permalink
Merge pull request #1005 from sul-dlss/rename-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo authored Nov 3, 2023
2 parents 3a4add2 + 524b593 commit edfac11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

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

jobs:
tests:
Expand Down
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -56,7 +56,7 @@ pipeline {
}

when {
branch 'master'
branch 'main'
}

steps {
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, 'digital_stacks'
set :repo_url, 'https://github.com/sul-dlss/stacks.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/stacks/stacks'
Expand Down

0 comments on commit edfac11

Please sign in to comment.