Skip to content

Commit

Permalink
Use built imag
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Dec 8, 2023
1 parent 86c2131 commit 3a3d1b5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/gha-docker-solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,29 @@ jobs:
- 6379:6379
options:
--memory=60m
solr:
image: ghcr.io/ibexa/core/solr
ports:
- 8983:8983
options: >-
--health-cmd "solr status"
--health-interval 10s
--health-timeout 5s
--health-retries 10
# solr:
# image: ghcr.io/ibexa/core/solr
# ports:
# - 8983:8983
# options: >-
# --health-cmd "solr status"
# --health-interval 10s
# --health-timeout 5s
# --health-retries 10
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Build Solr image
run: docker build -t "$IMAGE_NAME:latest" docker/solr

- name: Start Solr image
run: |
docker run --health-cmd "solr status" \
--health-interval 10s --health-timeout 5s --health-retries 10 \
-d -p 8983:8983 "$IMAGE_NAME:latest"
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
Expand All @@ -64,15 +73,6 @@ jobs:
CACHE_HOST: 127.0.0.1
CORES_SETUP: single

# - name: Build Solr image
# run: docker build -t "$IMAGE_NAME:latest" docker/solr

# - name: Start Solr image
# run: |
# docker run --health-cmd "solr status" \
# --health-interval 10s --health-timeout 5s --health-retries 10 \
# -d -p 8983:8983 "$IMAGE_NAME:latest"

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand Down

0 comments on commit 3a3d1b5

Please sign in to comment.