chore: add ci for migrating against devel
All checks were successful
migrate / migrate devel (push) Successful in 1m14s

This commit is contained in:
Orion Kindel 2023-06-18 10:52:44 -05:00
parent 442d4e8ae0
commit 5da43ddf0f
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
5 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,19 @@
name: 'migrate'
on: { push: { branches: ['main'] } }
jobs:
devel:
name: 'migrate devel'
env:
POSTGRES_ROOT_CONNECTION_URL: '${{ secrets.DEVEL_POSTGRES_ROOT_CONNECTION_URL }}'
POSTGRES_CONNECTION_URL: '${{ secrets.DEVEL_POSTGRES_CONNECTION_URL }}'
steps:
- uses: 'actions/checkout@v3'
- name: 'install postgres'
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
apt-get install -y curl ca-certificates gnupg postgresql-common
YES=y sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
apt-get install -y postgresql-15
- run: 'echo "FOO=bar" > .env && ./scripts/migrate.sh'

View File

@ -1,4 +1,4 @@
#! /usr/bin/bash
#! /bin/bash
source ./scripts/env.sh ./.env.schema

View File

@ -1,4 +1,4 @@
#! /usr/bin/bash
#! /bin/bash
set -e

View File

@ -1,4 +1,4 @@
#! /usr/bin/bash
#! /bin/bash
file=${1:-./.env}

View File

@ -1,6 +1,6 @@
#! /usr/bin/bash
#! /bin/bash
set -e
set -xe
source ./scripts/env.sh ./.env