diff --git a/.github/workflows/upgrade-shop.yml b/.github/workflows/upgrade-shop.yml index 8bc465d2..4b558794 100644 --- a/.github/workflows/upgrade-shop.yml +++ b/.github/workflows/upgrade-shop.yml @@ -190,13 +190,9 @@ jobs: ps_dir: ${{ env.PS_TARGET }} - name: Override files from target branch - env: - REPLACED_FILES: | - .docker - docker-compose.yml - test/UI run: | - for replacedFile in ${{ env.REPLACED_FILES }}; do + filesToReplace=".docker docker-compose.yml test/UI" + for replacedFile in $filesToReplace; do if test -f ${{ env.PS_DIR }}/$replacedFile; then echo Remove file ${{ env.PS_DIR }}/$replacedFile rm -f ${{ env.PS_DIR }}/$replacedFile @@ -216,6 +212,15 @@ jobs: fi done + - name: Enable SSL for upgraded shop ${{ inputs.target_ref }} + if: startsWith(inputs.target_ref, '8.1') || inputs.target_ref == 'develop' + run: + docker exec ${{ env.DOCKER_PREFIX }}_mysql_1 /usr/bin/mysql -u ${{ env.DB_USER }} -p${{ env.DB_PASSWD }} -e "UPDATE ${{ env.DB_PREFIX }}configuration SET `value` = 'localhost:8002' WHERE `name` = 'PS_SHOP_DOMAIN';" + docker exec ${{ env.DOCKER_PREFIX }}_mysql_1 /usr/bin/mysql -u ${{ env.DB_USER }} -p${{ env.DB_PASSWD }} -e "UPDATE ${{ env.DB_PREFIX }}configuration SET `value` = 'localhost:8002' WHERE `name` = 'PS_SHOP_DOMAIN_SSL';" + docker exec ${{ env.DOCKER_PREFIX }}_mysql_1 /usr/bin/mysql -u ${{ env.DB_USER }} -p${{ env.DB_PASSWD }} -e "UPDATE ${{ env.DB_PREFIX }}configuration SET `value` = '0' WHERE `name` = 'PS_SSL_ENABLED';" + docker exec ${{ env.DOCKER_PREFIX }}_mysql_1 /usr/bin/mysql -u ${{ env.DB_USER }} -p${{ env.DB_PASSWD }} -e "UPDATE ${{ env.DB_PREFIX }}configuration SET `value` = '0' WHERE `name` = 'PS_SSL_ENABLED_EVERYWHERE';" + docker exec ${{ env.DOCKER_PREFIX }}_mysql_1 /usr/bin/mysql -u ${{ env.DB_USER }} -p${{ env.DB_PASSWD }} -e "UPDATE ${{ env.DB_PREFIX }}shop_url SET `domain` = 'localhost:8002', `domain_ssl` = 'localhost:8002';" + # Prepare archive contents to share with following jobs - name: Archive shop content if: always()