Skip to content

Commit

Permalink
Fix docker env variable for version 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Feb 23, 2024
1 parent e0f0b59 commit a3ba448
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ runs:
- name: Build docker compose stack
env:
VERSION: ${{ matrix.from }}
BASE_VERSION: ${{ startsWith(matrix.from, '1.6') && '7.1-apache' || startsWith(matrix.from, '8.') && '8.1-apache' || '7.2-apache' }}
shell: bash
run: |
bash -c 'if [[ "${VERSION}" == 1.6* ]]; then export BASE_VERSION=7.1-apache; \
elif [[ "${VERSION}" == 8.* ]]; then export BASE_VERSION=8.1-apache; \
else export BASE_VERSION=7.2-apache; fi && docker compose up -d'
docker compose up -d
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} http://localhost:8001/index.php)" != "200" ]]; do sleep 5; done'
- name: Copy autoupgrade module
shell: bash
Expand Down

0 comments on commit a3ba448

Please sign in to comment.