From 35799f433032e4f087b70f3d1e347fdd57b1f865 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Sun, 12 Jan 2025 15:17:34 +0000 Subject: [PATCH] Ref #1431 pr preview debug branch 1431-as-a-shop-owner-i-can-bulk-pause-all-payment-collections-acr --- .github/workflows/pr-demo-deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-demo-deploy.yml b/.github/workflows/pr-demo-deploy.yml index 6a6960fc..174e4966 100644 --- a/.github/workflows/pr-demo-deploy.yml +++ b/.github/workflows/pr-demo-deploy.yml @@ -46,6 +46,8 @@ jobs: set -x # Enforce max 60 chars, always end with alnum char echo SUBDOMAIN=`echo "${{ github.head_ref }}" | tr '[:upper:]' '[:lower:]' | cut -c -60 | rev | sed 's/[^[:alnum:]]//1' | rev` >> $GITHUB_ENV + # TODO remove. + echo SUBDOMAIN=1431-as-a-shop-owner-i-can-bulk-pause-all-paymentcollection >> $GITHUB_ENV echo $GITHUB_ENV - name: Create dokku app for pr branch if doesn't already exist using dokku apps:create env: @@ -69,7 +71,7 @@ jobs: ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart ${{ env.SUBDOMAIN }} EMAIL_QUEUE_FOLDER=${{ secrets.DOKKU_EMAIL_QUEUE_FOLDER }}" ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart ${{ env.SUBDOMAIN }} SERVER_NAME=${{ env.SUBDOMAIN }}.pcpink.co.uk" # mount email-queue folder - ssh dokku@$DOKKU_HOST -C "dokku storage:mount ${{ github.head_ref }} ${{ secrets.HOST_EMAIL_QUEUE_PATH }}:${{ secrets.DOKKU_EMAIL_QUEUE_FOLDER }} && dokku ps:restart ${{ github.head_ref }} || true" + ssh dokku@$DOKKU_HOST -C "dokku storage:mount ${{ env.SUBDOMAIN }} ${{ secrets.HOST_EMAIL_QUEUE_PATH }}:${{ secrets.DOKKU_EMAIL_QUEUE_FOLDER }} && dokku ps:restart ${{ env.SUBDOMAIN }} || true" - name: Deploy branch ${{ github.head_ref }} to dokku uses: idoberko2/dokku-deploy-github-action@v1 @@ -78,7 +80,7 @@ jobs: dokku-host: ${{ secrets.DOKKU_HOST }} app-name: ${{ env.SUBDOMAIN }} git-push-flags: '--force' - remote-branch: ${{ github.head_ref }} + remote-branch: 1431-as-a-shop-owner-i-can-bulk-pause-all-payment-collections-acr # ${{ github.head_ref }} - name: Click to see your PR web address env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} @@ -123,6 +125,7 @@ jobs: set -x cp tests/browser-automated-tests-playwright/.env.example tests/browser-automated-tests-playwright/.env cd tests/browser-automated-tests-playwright + pip3 install -r requirements.txt python3 run-playwright-tests.py - uses: actions/upload-artifact@v4