db/.gitea/workflows/migrate-devel.yml

20 lines
758 B
YAML
Raw Normal View History

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'