Skip to content

Commit

Permalink
Override docker in checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Oct 2, 2023
1 parent c2ac442 commit 049227b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/actions/checkout-prestashop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ runs:
run: |
echo PS_FF_SYMFONY_LAYOUT=true >> .env
shell: bash

# In old versions the docker configuration is not adapted to our test workflow so it is forcefully overridden
- name: Override Docker configuration
if: startsWith(inputs.repository_ref, '1.7')
run: |
cp -R ./custom_actions/docker-reference/.docker ${{ inputs.ps_dir }}
cp ./custom_actions/docker-reference/docker-compose.yml ${{ inputs.ps_dir }}
shell: bash
6 changes: 0 additions & 6 deletions .github/workflows/build-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ jobs:
rebase_or_merge: ${{ inputs.rebase_or_merge }}
backoffice_layout: ${{ inputs.backoffice_layout }}

- name: Override Docker configuration
if: startsWith(inputs.repository_ref, '1.7')
run: |
cp -R ./custom_actions/docker-reference/.docker ${{ env.PS_DIR }}
cp ./custom_actions/docker-reference/docker-compose.yml ${{ env.PS_DIR }}
# Pre pull/build images (when build background enabled)
- name: Pull images in background
working-directory: ${{ env.PS_DIR }}
Expand Down

0 comments on commit 049227b

Please sign in to comment.