Skip to content

Commit d6de92b

Browse files
committed
ci: run bundle install before docker build
1 parent acfb287 commit d6de92b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Build the Docker image
14-
run: docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
14+
run: |
15+
gem install bundler
16+
bundle install
17+
bundle exec rake assets:precompile RAILS_ENV=production
18+
docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
1519
- name: Login to DockerHub
1620
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
1721
- name: Push Docker image

0 commit comments

Comments
 (0)