Skip to content

Bump stripe from 11.6.0 to 12.3.0 #59

Bump stripe from 11.6.0 to 12.3.0

Bump stripe from 11.6.0 to 12.3.0 #59

Workflow file for this run

name: Testing Stripe Connect Webhook Endpoint Router
on:
# On all pushes except main
push:
branches-ignore:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy-testing:
name: Deploy to testing
runs-on: ubuntu-20.04
environment: testing
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare runner with ssh keys
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
DOKKU_HOST: ${{ secrets.DOKKU_HOST }}
run: |
set -x
mkdir -p ~/.ssh
eval `ssh-agent -s`
ssh-add - <<< "$SSH_PRIVATE_KEY"
ssh-keyscan $DOKKU_HOST >> ~/.ssh/known_hosts
- name: Create dokku app if doesn't already exist using dokku apps:create
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
DOKKU_HOST: ${{ secrets.DOKKU_HOST }}
run: |
set -x
eval `ssh-agent -s`
ssh-add - <<< "$SSH_PRIVATE_KEY"
echo Creating dokku app testing-stripe-connect-webhook-endpoint-router
ssh dokku@$DOKKU_HOST -C "dokku apps:create testing-stripe-connect-webhook-endpoint-router" | true
echo The url will be testing-stripe-connect-webhook-endpoint-router.pcpink.co.uk
ssh dokku@$DOKKU_HOST -C "dokku git:initialize testing-stripe-connect-webhook-endpoint-router"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router REDIS_HOSTNAME=${{ secrets.REDIS_HOSTNAME }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router REDIS_PORT=${{ secrets.REDIS_PORT }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router REDIS_TIMEOUT_SECS=${{ secrets.REDIS_TIMEOUT_SECS }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router STRIPE_WEBHOOK_SECRET=${{ secrets.STRIPE_WEBHOOK_SECRET }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router STRIPE_WEBHOOK_PATH=${{ secrets.STRIPE_WEBHOOK_PATH }}"
ssh dokku@$DOKKU_HOST -C "dokku config:set --no-restart testing-stripe-connect-webhook-endpoint-router PYTHON_LOG_LEVEL=${{ secrets.PYTHON_LOG_LEVEL }}"
ssh dokku@$DOKKU_HOST -C "dokku ps:set-restart-policy testing-stripe-connect-webhook-endpoint-router unless-stopped"
ssh dokku@$DOKKU_HOST -C "dokku ps:rebuild testing-stripe-connect-webhook-endpoint-router"
- id: deploy
name: Deploy to dokku
uses: idoberko2/dokku-deploy-github-action@v1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
dokku-host: ${{ secrets.DOKKU_HOST }}
app-name: 'testing-stripe-connect-webhook-endpoint-router'
git-push-flags: --force