22 lines
772 B
YAML
22 lines
772 B
YAML
name: 'migrate-devel'
|
|
on: {push: {branches: ['main']}}
|
|
|
|
jobs:
|
|
migrate-devel:
|
|
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
|
|
- name: 'install postgres'
|
|
run: |
|
|
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
|
|
sh /tmp/get-docker.sh
|
|
- run: './scripts/migrate.sh'
|
|
env:
|
|
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'
|