Skip to content

Commit

Permalink
Merge pull request #2332 from tawoe/UPSTREAM-develop
Browse files Browse the repository at this point in the history
add redis to container building
  • Loading branch information
simonredfern committed Nov 21, 2023
2 parents 494df6d + 419ca7e commit e224a19
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ env:
jobs:
build:
runs-on: ubuntu-latest

services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
ports:
# Opens tcp port 6379 on the host and service container
- 6379:6379
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand Down Expand Up @@ -59,7 +72,7 @@ jobs:
echo ResetPasswordUrlEnabled=true >> obp-api/src/main/resources/props/test.default.props
echo consents.allowed=true >> obp-api/src/main/resources/props/test.default.props
MAVEN_OPTS="-Xmx3G -Xss2m -DskipTests" mvn package
MAVEN_OPTS="-Xmx3G -Xss2m" mvn package
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
Expand Down

0 comments on commit e224a19

Please sign in to comment.