diff --git a/.github/workflows/build_system_image.yml b/.github/workflows/build_system_image.yml index bfe17d47..47ab23d4 100644 --- a/.github/workflows/build_system_image.yml +++ b/.github/workflows/build_system_image.yml @@ -38,12 +38,12 @@ jobs: run: | # Generate random ports between 1024 and 65535 port1=$((RANDOM%64311+1024)) - # echo "Random Port 1: $port1" + echo "Random Port 1: $port1" - name: Create first bench run: | cp example.env ~/gitops/${{ github.event.pull_request.head.ref }}.env sed -i 's/FRAPPE_SITE_NAME_HEADER=/FRAPPE_SITE_NAME_HEADER=${{ github.event.pull_request.head.ref }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env - sed -i 's/PORTS=/PORTS=$port1/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env + sed -i 's/PORTS=/PORTS="$port1"/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env sed -i 's/DBPASSWORD=/DP=DBPASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env # sed -i 's/DB_PASSWORD=123/DB_PASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env # sed -i 's/DB_HOST=/DB_HOST=mariadb-database/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env