diff --git a/.github/workflows/actions/run-tests/action.yml b/.github/workflows/actions/run-tests/action.yml index 7aed5a0b..73b283ac 100644 --- a/.github/workflows/actions/run-tests/action.yml +++ b/.github/workflows/actions/run-tests/action.yml @@ -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' }} diff --git a/.github/workflows/build-shop.yml b/.github/workflows/build-shop.yml index 8cf2a776..2fd2fc79 100644 --- a/.github/workflows/build-shop.yml +++ b/.github/workflows/build-shop.yml @@ -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' }} diff --git a/.github/workflows/test-sanity.yml b/.github/workflows/test-sanity.yml index 24995df4..a4a5c2ac 100644 --- a/.github/workflows/test-sanity.yml +++ b/.github/workflows/test-sanity.yml @@ -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' }} diff --git a/.github/workflows/test-with-prebuilt-shop.yml b/.github/workflows/test-with-prebuilt-shop.yml index e0ce9995..7a1877c6 100644 --- a/.github/workflows/test-with-prebuilt-shop.yml +++ b/.github/workflows/test-with-prebuilt-shop.yml @@ -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' }} diff --git a/.github/workflows/upgrade-shop.yml b/.github/workflows/upgrade-shop.yml index 052d37f4..f7d2069b 100644 --- a/.github/workflows/upgrade-shop.yml +++ b/.github/workflows/upgrade-shop.yml @@ -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' }}