Update build script

This commit is contained in:
Hakan Ensari 2023-03-01 13:50:01 +00:00
parent 62fd0e4b09
commit 9c974df575
No known key found for this signature in database

View File

@ -6,17 +6,17 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ruby:3.1.1 image: ruby:3.2.1
services: services:
postgres: postgres:
image: postgres:12 image: postgres:15
env: env:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
ports: ports:
- 5432:5432 - 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: gem install bundler - run: gem install bundler
- run: bundle install --jobs 4 --retry 3 - run: bundle install --jobs 4 --retry 3
- run: bundle exec rake - run: bundle exec rake
@ -28,8 +28,8 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: elgohr/Publish-Docker-Github-Action@2.14 - uses: elgohr/Publish-Docker-Github-Action@v5
with: with:
name: hakanensari/frankfurter name: hakanensari/frankfurter
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}