32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
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 docker-ce-cli'
|
|
run: |
|
|
apt-get update
|
|
install -m 0755 -d /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
|
echo \
|
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
apt-get update
|
|
apt-get install -y docker-ce-cli docker-compose-plugin
|
|
stat /var/run/docker.sock
|
|
|
|
- run: './scripts/migrate.sh'
|
|
env:
|
|
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'
|