Skip to content

Commit

Permalink
Update postgres and redis (#704)
Browse files Browse the repository at this point in the history
* Update postgres and redis

* Update postgres in CI
  • Loading branch information
wilco375 authored May 22, 2022
1 parent 5571605 commit bd71158
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:
needs: build
services:
db:
image: postgres:11.2
image: postgres:14.2
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down Expand Up @@ -65,8 +68,8 @@ jobs:
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
docker run -e POSTGRES_USER=postgres -e POSTGRES_HOST=localhost -e RAILS_MASTER_KEY --network=host app \
bin/ci.sh lint
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
RAILS_MASTER_KEY --network=host app bin/ci.sh lint
test:
name: Test
Expand Down Expand Up @@ -101,5 +104,5 @@ jobs:
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
docker run -e POSTGRES_USER=postgres -e POSTGRES_HOST=localhost -e RAILS_MASTER_KEY --network=host app \
bin/ci.sh spec
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
RAILS_MASTER_KEY --network=host app bin/ci.sh spec
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: '3'
services:
db:
env_file: .env # must include POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_HOST
image: postgres:11.2
image: postgres:14.2
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
env_file: .env # must include POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_HOST
image: 'redis:5.0-alpine'
image: 'redis:6.2-alpine'
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/var/lib/redis/data
Expand Down

0 comments on commit bd71158

Please sign in to comment.