Skip to content

Commit

Permalink
Ref #1431 pr preview debug branch 1431-as-a-shop-owner-i-can-bulk-pau…
Browse files Browse the repository at this point in the history
…se-all-payment-collections-acr
  • Loading branch information
chrisjsimpson committed Jan 12, 2025
1 parent 5fab9a7 commit 35799f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-demo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35799f4

Please sign in to comment.