Skip to content

Commit

Permalink
cd: avoid harcoding kamal's version in deploy gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagorodriguez96 committed May 10, 2024
1 parent 6b67837 commit 757cb99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/staging_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
deploy:
runs-on: ubuntu-latest

env:
BUNDLE_ONLY: 'deploy'

steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -38,9 +41,8 @@ jobs:

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Install kamal
run: gem install kamal -v 1.3.0
with:
bundler-cache: true

- name: Set up Docker Buildx for cache
uses: docker/setup-buildx-action@v3
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ group :development, :test do
end

group :development do
gem 'kamal', '~> 1.5'
gem "letter_opener", "~> 1.10"
gem 'rubocop', '~> 1.63'
gem 'rubocop-performance', '~> 1.21', require: false
Expand All @@ -37,3 +36,5 @@ group :test do
gem 'capybara', '~> 3.40'
gem 'selenium-webdriver', '~> 4.20'
end

gem 'kamal', '~> 1.5', group: [:development, :deploy]

0 comments on commit 757cb99

Please sign in to comment.