Skip to content

Commit

Permalink
Force modern docker version everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Oct 2, 2023
1 parent 8afdcee commit e581dee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
PS_DEV_MODE: ${{ fromJson(inputs.ps_mode_dev) && '1' || '0' }}
PHP_VERSION: ${{ inputs.php_version }}
NODE_VERSION: ${{ inputs.node_version }}
VERSION: ${{ inputs.php_version }}-apache
VERSION: ${{ format('{0}{1}', inputs.php_version, '-apache') }}
PS_DOMAIN: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && 'localhost:8001' || 'localhost:8002' }}
PS_ENABLE_SSL: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && '0' || '1' }}
ADMIN_PASSWD: ${{ startsWith(inputs.repository_ref, '1.7') && 'prestashop_demo' || 'Correct Horse Battery Staple' }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
PS_DEV_MODE: ${{ inputs.ps_mode_dev && '1' || '0' }}
PHP_VERSION: ${{ inputs.php_version }}
NODE_VERSION: ${{ inputs.node_version }}
# In 1.7 versions the docker parent name is built the same way so only PHP version is set, in following versions we append -apache
#VERSION: ${{ (startsWith(inputs.repository_ref, '1.7')) && inputs.php_version || format('{0}{1}', inputs.php_version, '-apache') }}
VERSION: ${{ format('{0}{1}', inputs.php_version, '-apache') }}
PS_DOMAIN: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && 'localhost:8001' || 'localhost:8002' }}
PS_ENABLE_SSL: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && '0' || '1' }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
PS_DEV_MODE: ${{ inputs.ps_mode_dev && '1' || '0' }}
PHP_VERSION: ${{ inputs.php_version }}
NODE_VERSION: ${{ inputs.node_version }}
# In 1.7 versions the docker parent name is built the same way so only PHP version is set, in following versions we append -apache
VERSION: ${{ (startsWith(inputs.repository_ref, '1.7')) && inputs.php_version || format('{0}{1}', inputs.php_version, '-apache') }}
VERSION: ${{ format('{0}{1}', inputs.php_version, '-apache') }}
PS_DOMAIN: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && 'localhost:8001' || 'localhost:8002' }}
PS_ENABLE_SSL: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && '0' || '1' }}
ADMIN_PASSWD: ${{ startsWith(inputs.repository_ref, '1.7') && 'prestashop_demo' || 'Correct Horse Battery Staple' }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-with-prebuilt-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
PS_DEV_MODE: ${{ inputs.ps_mode_dev && '1' || '0' }}
PHP_VERSION: ${{ inputs.php_version }}
NODE_VERSION: ${{ inputs.node_version }}
# In 1.7 versions the docker parent name is built the same way so only PHP version is set, in following versions we append -apache
VERSION: ${{ (startsWith(inputs.repository_ref, '1.7')) && inputs.php_version || format('{0}{1}', inputs.php_version, '-apache') }}
VERSION: ${{ format('{0}{1}', inputs.php_version, '-apache') }}
PS_DOMAIN: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && 'localhost:8001' || 'localhost:8002' }}
PS_ENABLE_SSL: ${{ (startsWith(inputs.repository_ref, '8.0') || startsWith(inputs.repository_ref, '1.7')) && '0' || '1' }}
ADMIN_PASSWD: ${{ startsWith(inputs.repository_ref, '1.7') && 'prestashop_demo' || 'Correct Horse Battery Staple' }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/upgrade-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
PS_DEV_MODE: ${{ inputs.ps_mode_dev && '1' || '0' }}
PHP_VERSION: ${{ inputs.php_version }}
NODE_VERSION: ${{ inputs.node_version }}
# In 1.7 versions the docker parent name is built the same way so only PHP version is set, in following versions we append -apache
VERSION: ${{ (startsWith(inputs.repository_ref, '1.7')) && inputs.php_version || format('{0}{1}', inputs.php_version, '-apache') }}
VERSION: ${{ format('{0}{1}', inputs.php_version, '-apache') }}
PS_DOMAIN: ${{ (startsWith(inputs.source_ref, '8.0') || startsWith(inputs.source_ref, '1.7')) && 'localhost:8001' || 'localhost:8002' }}
PS_ENABLE_SSL: ${{ (startsWith(inputs.source_ref, '8.0') || startsWith(inputs.source_ref, '1.7')) && '0' || '1' }}
ADMIN_PASSWD: ${{ startsWith(inputs.source_ref, '1.7') && 'prestashop_demo' || 'Correct Horse Battery Staple' }}
Expand Down

0 comments on commit e581dee

Please sign in to comment.